diff options
Diffstat (limited to '.github/workflows/android-dockerimage.yml')
-rw-r--r-- | .github/workflows/android-dockerimage.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/android-dockerimage.yml b/.github/workflows/android-dockerimage.yml new file mode 100644 index 000000000..c5cdf5154 --- /dev/null +++ b/.github/workflows/android-dockerimage.yml @@ -0,0 +1,30 @@ +name: Docker Image CI + +on: + push: + paths: + - scripts/docker/android-build-container/Dockerfile + +jobs: + android-build-container: + runs-on: ubuntu-latest + env: + VERSION: 5.13.01 + + steps: + - uses: actions/checkout@v1 + + - name: Get our pre-reqs + run: | + cd scripts/docker/android-build-container + bash download.sh + sed -ie 's/^sudo/#sudo/' setup-docker.sh + bash setup-docker.sh + + - name: Build the Docker image + run: docker build ./scripts/docker/android-build-container/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION} + + - name: Push the Docker image + run: | + docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }} + docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION} |