https://github.com/inovex/gitlab-ci-android
Docker image for your Android builds
https://github.com/inovex/gitlab-ci-android
android gitlab-ci
Last synced: 2 months ago
JSON representation
Docker image for your Android builds
- Host: GitHub
- URL: https://github.com/inovex/gitlab-ci-android
- Owner: inovex
- License: apache-2.0
- Created: 2017-04-18T13:27:27.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-09T09:59:39.000Z (6 months ago)
- Last Synced: 2025-03-31T05:04:36.141Z (2 months ago)
- Topics: android, gitlab-ci
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/inovex/gitlab-ci-android/
- Size: 36.1 KB
- Stars: 52
- Watchers: 16
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-ci-android
https://hub.docker.com/r/inovex/gitlab-ci-android/
Contains the Android SDK, NDK and common packages necessary for building Android Apps in Gitlab CI (for example).
Make sure caching is enabled for the CI environment to speed up builds.Example yml which has dependency caching enabled:
```
image: inovex/gitlab-ci-androidstages:
- releasevariables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlewcache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/build:
stage: release
script:
- ./gradlew clean assembleRelease
artifacts:
expire_in: 2 weeks
paths:
- app/build/outputs/apk/*.apk
only:
- develop
```### JDK Settings
The Docker image supports JDK 8 11, 17 and 21.To use the correct version within your builds, it is recommended to define `JAVA_HOME` accordingly.
```
before_script:
- export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
or
- export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
or
- export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
or
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
```## License
```
Gitlab CI Android
Copyright (c) 2024 inovex GmbH (https://www.inovex.de)Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```