A docker image for building Android apps. Supports multiple SDK Build Tools.
Clone or download
Latest commit 317b6b3 Oct 11, 2018
Permalink
Failed to load latest commit information.
Dockerfile 18.04 instead of 17.10 Jul 29, 2018
LICENSE Initial commit Nov 11, 2017
README.md Update README.md Oct 10, 2018
packages.txt Add in Build tools 28.0.3 Oct 9, 2018

README.md

Android CI Android CI on Docker Hub

Continous Integration (CI) for Android apps on GitLab / Bitbucket

An image for building Android apps with support for multiple SDK Build Tools. This Docker image contains the Android SDK and most common packages necessary for building Android apps in a CI tool. Based on jangrewe/gitlab-ci-android.

Available images

javiersantos/android-ci:latest

image: javiersantos/android-ci:latest

Includes the latest SDK Build Tools and SDK Platform.

  • Build Tools: 28.0.3
  • Platform: Android 25, 26, 27 & 28

javiersantos/android-ci:28.0.3

image: javiersantos/android-ci:28.0.3
  • Build Tools: 28.0.3
  • Platform: Android 25, 26, 27 & 28

javiersantos/android-ci:28.0.2

image: javiersantos/android-ci:28.0.2
  • Build Tools: 28.0.2
  • Platform: Android 25, 26, 27 & 28

javiersantos/android-ci:27.0.3

image: javiersantos/android-ci:27.0.3
  • Build Tools: 27.0.3
  • Platform: Android 25, 26 & 27

javiersantos/android-ci:27.0.2

image: javiersantos/android-ci:27.0.2
  • Build Tools: 27.0.2
  • Platform: Android 25, 26 & 27

javiersantos/android-ci:27.0.1

image: javiersantos/android-ci:27.0.1
  • Build Tools: 27.0.1
  • Platform: Android 25, 26 & 27

javiersantos/android-ci:27.0.0

image: javiersantos/android-ci:27.0.0
  • Build Tools: 27.0.0
  • Platform: Android 25, 26 & 27

javiersantos/android-ci:26.0.3

image: javiersantos/android-ci:26.0.3
  • Build Tools: 26.0.3
  • Platform: Android 25, 26 & 27

javiersantos/android-ci:26.0.2

image: javiersantos/android-ci:26.0.2
  • Build Tools: 26.0.2
  • Platform: Android 25, 26 & 27

Sample usages

GitLab

.gitlab-ci.yml

image: javiersantos/android-ci:27.0.3

before_script:
    - export GRADLE_USER_HOME=`pwd`/.gradle
    - chmod +x ./gradlew

cache:
  key: "$CI_COMMIT_REF_NAME"
  paths:
     - .gradle/

stages:
  - build

build:
  stage: build
  script:
     - ./gradlew assembleDebug
  artifacts:
    paths:
      - app/build/outputs/apk/

Bitbucket

bitbucket-pipeline.yml

image: javiersantos/android-ci:27.0.3

pipelines:
  default:
    - step:
        script:
          - export GRADLE_USER_HOME=`pwd`/.gradle
          - chmod +x ./gradlew
          - ./gradlew assembleDebug