- OpenJDK 8
- Git
- Gradle 6.5
- Android SDK (android-30)
- Android Build-tools (30.0.2)
- Android Support Libraries
- Google Play Services
docker build -t cangol/android-gradle .
docker push cangol/android-gradle
This is what my .gitlab-ci.yml looks like:
image: cangol/android-gradle
stages:
- build
build:
stage: build
script:
- gradlew build
only:
- master
docker pull cangol/android-gradle
Change directory to your project directory, then run:
docker run --tty --interactive --volume=$(pwd):/opt/workspace --workdir=/opt/workspace --rm cangol/android-gradle /bin/sh -c "./gradlew build"