Sign inSign up

jpkrause/react-native-gitlab-ci-build

By jpkrause

•Updated almost 8 years ago

docker image to use with Gitlab CI for building the Android APK

Image
0

6.1K

jpkrause/react-native-gitlab-ci-build repository overview

⁠react-native-gitlab-ci-build

Docker file for building react native applications in Gitlab CI

Based on https://hub.docker.com/r/magiczvn/gitlab-ci-react-native-android/⁠

sample .gitlab-ci.yml:

image: jpkrause/react-native-gitlab-ci-build

cache:
  paths:
    - node_modules/
    - .gradle/

stages:
  - build

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

build:
  stage: build
  script:
    - npm install --unsafe-perm
    - cd android && ./gradlew assembleDebug --stacktrace
  artifacts:
    paths:
    - android/app/build/outputs/apk

Tag summary

Content type

Image

Digest

Size

1.9 GB

Last updated

almost 8 years ago

docker pull jpkrause/react-native-gitlab-ci-build