Compare commits
No commits in common. "f19d57b9569cea5eacc16f2356227783d29bf833" and "cccb7feb833886b4029f48e5d72e48a68b240621" have entirely different histories.
f19d57b956
...
cccb7feb83
|
@ -11,7 +11,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
archlinux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -25,24 +25,29 @@ jobs:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Build and push Docker image
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image (archlinux)
|
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: archlinux
|
context: archlinux
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: medzik/android-sdk:archlinux
|
||||||
medzik/android-sdk:archlinux
|
|
||||||
ghcr.io/medzikuser/android-sdk:archlinux
|
|
||||||
|
|
||||||
- name: Build and push Docker image (ubuntu)
|
ubuntu:
|
||||||
|
needs: archlinux
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ubuntu
|
context: ubuntu
|
||||||
|
@ -50,5 +55,3 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
medzik/android-sdk:ubuntu
|
medzik/android-sdk:ubuntu
|
||||||
medzik/android-sdk:latest
|
medzik/android-sdk:latest
|
||||||
ghcr.io/medzikuser/android-sdk:ubuntu
|
|
||||||
ghcr.io/medzikuser/android-sdk:latest
|
|
||||||
|
|
|
@ -3,9 +3,42 @@ FROM medzik/archlinux:latest
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pacman -Sy --noconfirm \
|
RUN sudo pacman -Sy --noconfirm \
|
||||||
android-platform \
|
jdk11-openjdk \
|
||||||
android-sdk-platform-tools \
|
&& yes | sudo pacman -Scc
|
||||||
android-sdk-cmdline-tools-latest \
|
|
||||||
android-sdk-build-tools && \
|
# Install cmdline tools
|
||||||
yes | pacman -Scc
|
RUN git clone https://aur.archlinux.org/android-sdk-cmdline-tools-latest.git \
|
||||||
|
&& cd android-sdk-cmdline-tools-latest \
|
||||||
|
&& makepkg -sr --noconfirm \
|
||||||
|
&& sudo pacman -U ./*.pkg.tar* --noconfirm \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf android-sdk-cmdline-tools-latest \
|
||||||
|
&& yes | sudo pacman -Scc
|
||||||
|
|
||||||
|
# Install platform tools
|
||||||
|
RUN git clone https://aur.archlinux.org/android-sdk-platform-tools.git \
|
||||||
|
&& cd android-sdk-platform-tools \
|
||||||
|
&& makepkg -sr --noconfirm \
|
||||||
|
&& sudo pacman -U ./*.pkg.tar* --noconfirm \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf android-sdk-platform-tools \
|
||||||
|
&& yes | sudo pacman -Scc
|
||||||
|
|
||||||
|
# Install platform
|
||||||
|
RUN git clone https://aur.archlinux.org/android-platform.git \
|
||||||
|
&& cd android-platform \
|
||||||
|
&& makepkg -sr --noconfirm \
|
||||||
|
&& sudo pacman -U ./*.pkg.tar* --noconfirm \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf android-platform \
|
||||||
|
&& yes | sudo pacman -Scc
|
||||||
|
|
||||||
|
# Install build tools
|
||||||
|
RUN git clone https://aur.archlinux.org/android-sdk-build-tools.git \
|
||||||
|
&& cd android-sdk-build-tools \
|
||||||
|
&& makepkg -sr --noconfirm \
|
||||||
|
&& sudo pacman -U ./*.pkg.tar* --noconfirm \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf android-sdk-build-tools \
|
||||||
|
&& yes | sudo pacman -Scc
|
||||||
|
|
Loading…
Reference in New Issue