mirror of
https://github.com/budtmo/docker-android.git
synced 2025-12-08 18:25:50 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
89 lines
2.3 KiB
YAML
89 lines
2.3 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*-*'
|
|
|
|
jobs:
|
|
run_test:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.8"]
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Run unit-test
|
|
run: script -e -c "./app.sh test emulator test 11.0 && sudo mv tmp/* ."
|
|
|
|
release_base:
|
|
runs-on: ubuntu-24.04
|
|
needs: run_test
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Get release version
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Build and push base image (${RELEASE_VERSION})
|
|
run: |
|
|
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
|
|
./app.sh push base ${RELEASE_VERSION}
|
|
docker logout
|
|
|
|
release_emulator:
|
|
runs-on: ubuntu-24.04
|
|
needs: release_base
|
|
strategy:
|
|
matrix:
|
|
android: ["9.0", "10.0", "11.0", "12.0", "13.0", "14.0"]
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Get release version
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Set up extension
|
|
run: |
|
|
echo "${{ secrets.extension }}" > extension.sh
|
|
chmod 700 extension.sh
|
|
shell: bash
|
|
|
|
- name: Build and push emulator image ${{ matrix.android }} (${RELEASE_VERSION})
|
|
run: |
|
|
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
|
|
./app.sh push emulator ${RELEASE_VERSION} ${{ matrix.android }}
|
|
docker logout
|
|
|
|
release_genymotion:
|
|
runs-on: ubuntu-24.04
|
|
needs: release_base
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Get release version
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Set up extension
|
|
run: |
|
|
echo "${{ secrets.extension }}" > extension.sh
|
|
chmod 700 extension.sh
|
|
shell: bash
|
|
|
|
- name: Build and push genymotion image (${RELEASE_VERSION})
|
|
run: |
|
|
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
|
|
./app.sh push genymotion ${RELEASE_VERSION}
|
|
docker logout
|