Simx303 / gitlab-ci-android-node

GitLab CI image for building Android apps. Node included

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android + node image for gitlab-ci

This Docker image contains the Android SDK, Node and most common packages necessary for building Android apps in a CI tool like GitLab CI. Make sure your CI environment's caching works as expected, this greatly improves the build time, especially if you use multiple build jobs.

A .gitlab-ci.yml with caching of your project's dependencies would look like this:

image: simx303/gitlab-ci-android-node

stages:
- npmBuild
- androidBuild

before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./android/gradlew

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

npmBuild:
  stage: npmBuild
  script:
  - npm run build

androidBuild:
  stage: androidBuild
  script:
  - cd ./android
  - ./gradlew assembleDebug
  artifacts:
    paths:
    - android/app/build/outputs/apk/**/*.apk

About

GitLab CI image for building Android apps. Node included

License:MIT License


Languages

Language:Dockerfile 86.1%Language:Shell 13.9%