This Docker image is a fork of theimpulson/gitlab-ci-android. This fork contains the Android SDK and most standard, up-to-date packages necessary for building Android apps in a CI in GitLab CI.
- Ubuntu:
22.04
- JDK:
17
- Android command-line tools:
10406996
- Android build tools & platform:
API 34
A .gitlab-ci.yml
with caching of your project's dependencies would look like this:
image: theimpulson/gitlab-ci-android
stages:
- build
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/app-debug.apk
This image is hosted on DockerHub.