Public Repository

Last pushed: 15 days ago
Short Description
Gitlab CI Android
Full Description

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.

Example .gitlab-ci.yml

image: pratamawijaya/gitlab-ci-android

stages:
- check
- build
- deploy

before_script:
  - export GRADLE_USER_HOME=/cache/.gradle

cache:
  key: ${CI_PROJECT_ID}
  paths:
  - .gradle/

#job untuk checking
check:
  stage: check
  script:
      - ./gradlew --stacktrace clean assembleDebug


#job untuk build
build:
  stage: build
  only:
      - develop
  script:
    - ./gradlew --stacktrace clean assembleRelease
  artifacts:
    paths:
    - app/build/outputs/apk

#job untuk deploy
deploy:
  stage: deploy
  only:
      - master
  script:
    - ./gradlew --stacktrace clean assembleRelease
  artifacts:
    paths:
    - app/build/outputs/apk
Docker Pull Command
Owner
pratamawijaya

Comments (0)