Skip to content

A docker image for building Android apps. Supports multiple SDK Build Tools.

License

Notifications You must be signed in to change notification settings

Code0987/android-ci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android CI

Android CI on Docker Hub Android CI on Docker Hub

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 javiersantos/android-ci.

Sample usages

GitLab CI/CD

.gitlab-ci.yml

image: code0987/android-ci:latest

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/

Github Actions

.github/workflows/android-ci.yml

name: Android CI

on: [push]

jobs:

  android-ci:
    runs-on: ubuntu-latest
    container: code0987/android-ci:latest

    steps:
    - uses: actions/checkout@v1

    - name: test
      run: |
        npm install
        export GRADLE_USER_HOME=`pwd`./src/.gradle
        chmod +x ./src/gradlew
        ./src/gradlew -p ./src check

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%