https://github.com/jangrewe/gitlab-ci-android
GitLab CI image for building Android apps
https://github.com/jangrewe/gitlab-ci-android
android android-apps ci docker docker-image gitlab-ci
Last synced: 2 months ago
JSON representation
GitLab CI image for building Android apps
- Host: GitHub
- URL: https://github.com/jangrewe/gitlab-ci-android
- Owner: jangrewe
- License: mit
- Created: 2016-02-24T19:46:20.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T09:50:20.000Z (over 2 years ago)
- Last Synced: 2025-10-30T22:35:00.334Z (6 months ago)
- Topics: android, android-apps, ci, docker, docker-image, gitlab-ci
- Language: Dockerfile
- Homepage:
- Size: 43 KB
- Stars: 557
- Watchers: 17
- Forks: 294
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-ci-android
This Docker image contains the Android SDK and most common packages necessary for building Android apps in a CI tool like GitLab CI. Make sure your CI environment's caching works as expected, this greatly improves the build time, especially if you use multiple build jobs.
A `.gitlab-ci.yml` with caching of your project's dependencies would look like this:
```
image: jangrewe/gitlab-ci-android
stages:
- build
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/app-debug.apk
```