mirror of
https://github.com/HQarroum/docker-android.git
synced 2026-07-15 06:47:07 +02:00
Implement API builds with a matrix
This commit is contained in:
@@ -12,12 +12,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# Builds all Android API images with API level 30 and above.
|
# Builds all Android API images with API level 33 and below.
|
||||||
build-api-30x:
|
build-apis:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [33, 32, 31, 30]
|
version: [33, 32, 31, 30, 29, 28]
|
||||||
image: ['google_apis', 'google_apis_playstore']
|
image: [{ name: 'google_apis', suffix: '' }, { name: 'google_apis_playstore', suffix: '-playstore' }]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
@@ -25,65 +25,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
- name: Build Docker image with Android 33
|
- name: Build Docker image api-${{ matrix.version }}${{ matrix.image.suffix }}
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: halimqarroum/docker-android:api-33
|
tags: halimqarroum/docker-android:api-${{ matrix.version }}${{ matrix.image.suffix }}
|
||||||
build-args: |
|
build-args: |
|
||||||
API_LEVEL=${{ matrix.version }}
|
API_LEVEL=${{ matrix.version }}
|
||||||
IMG_TYPE=${{ matrix.image }}
|
IMG_TYPE=${{ matrix.image.name }}
|
||||||
|
|
||||||
build-api-29:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
||||||
- name: Build Docker image with Android 29
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: halimqarroum/docker-android:api-29
|
|
||||||
build-args: API_LEVEL=29
|
|
||||||
|
|
||||||
build-api-28:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
||||||
- name: Build Docker image with Android 28
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: halimqarroum/docker-android:api-28
|
|
||||||
build-args: |
|
|
||||||
"API_LEVEL=28"
|
|
||||||
"ARCHITECTURE=x86"
|
|
||||||
|
|
||||||
build-api-28-playstore:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
||||||
- name: Build Docker image with Android 28 and the PlayStore
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: halimqarroum/docker-android:api-28-playstore
|
|
||||||
build-args: |
|
|
||||||
"API_LEVEL=28"
|
|
||||||
"ARCHITECTURE=x86"
|
|
||||||
"IMG_TYPE=google_apis_playstore"
|
|
||||||
|
|
||||||
|
# Builds a minimal image without any Android SDK images.
|
||||||
build-minimal:
|
build-minimal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user