Skip to content

Cangol/android-gradle-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 

Repository files navigation

android-gradle

android-gradle

Included

  • OpenJDK 8
  • Git
  • Gradle 6.5
  • Android SDK (android-30)
  • Android Build-tools (30.0.2)
  • Android Support Libraries
  • Google Play Services

Build image

docker build -t cangol/android-gradle .

Push build version to repository

docker push cangol/android-gradle

Usage

GitLab CI

This is what my .gitlab-ci.yml looks like:

image: cangol/android-gradle
stages:
  - build

build:
  stage: build
  script:
    - gradlew build
  only:
    - master

Without GitLab

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"