Android CI
An image for building Android apps with support for multiple SDK Build Tools. This Docker image contains the Android SDK and most common packages necessary for building Android apps in a CI tool.
Based on javiersantos/android-ci.
Sample usages
GitLab CI/CD
.gitlab-ci.yml
image: code0987/android-ci:latest
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- .gradle/
stages:
- build
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/
Github Actions
.github/workflows/android-ci.yml
name: Android CI
on: [push]
jobs:
android-ci:
runs-on: ubuntu-latest
container: code0987/android-ci:latest
steps:
- uses: actions/checkout@v1
- name: test
run: |
npm install
export GRADLE_USER_HOME=`pwd`./src/.gradle
chmod +x ./src/gradlew
./src/gradlew -p ./src check