Sign inSign up

code0987/android-ci

By code0987

•Updated about 6 years ago

Image
0

3.0K

code0987/android-ci repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

about 6 years ago

docker pull code0987/android-ci