Sign inSign up

bernhard/gitlab-ci-react-native-android

By bernhard

•Updated over 7 years ago

A simple Image to create react-native builds for android using the GitLab CI system

Image
1

4.1K

bernhard/gitlab-ci-react-native-android repository overview

⁠Example usage:

# .gitlab-ci.yml

stages:
  - build

build:
  stage: build
  image: bernhard/gitlab-ci-react-native-android

  cache:
    key: ${CI_PROJECT_ID}
    paths:
      - android/.gradle/
      - node_modules
  before_script:
    - git submodule sync --recursive
    - git submodule update --init --recursive
    - yarn
    # make sure you added an environment variable with your base64 encoded keystore
    - echo $ANDROID_KEYSTORE > keystore.base64
    # you may need to change the name of the key store file:
    - base64 --decode keystore.base64 > ./android/app/my-release-key.keystore
    - mkdir myapp
  script:
    - cd android
    - ./gradlew assembleRelease
    - cp app/build/outputs/apk/app-release.apk ../myapp/myapp-release.apk
  artifacts:
    paths:
      - myapp/
    expire_in: 1 weeks
    name: myapp

Tag summary

Content type

Image

Digest

Size

1.9 GB

Last updated

about 8 years ago

docker pull bernhard/gitlab-ci-react-native-android