summaryrefslogtreecommitdiffstats
path: root/.github/workflows/android-dockerimage.yml
blob: c5cdf51547b59aa644418f8fd37f69d10bcbf366 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}