Sign inSign up

shoorkaii/gitlab-ci-react-native-android

By shoorkaii

•Updated about 7 years ago

Image
0

5.9K

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

⁠gitlab-ci-react-native-android

⁠Android 28.0.3 and Fastlane 2.116.0

This Docker image contains react-native and the Android SDK and most common packages necessary for building Android apps in a CI tool like GitLab CI.

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

image: shoorkaii/gitlab-ci-react-native-android

stages:
- build

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

build:
  stage: build
  script:
  - yarn
  - cd android && chmod +x ./gradlew && ./gradlew assembleRelease
  artifacts:
    paths:
    - android/app/build/outputs/apk/

⁠Detached testing

Build locally

docker build -t shoorkaii/gitlab-ci-react-native-android:android-28.0.3 .

or run from remote

	docker run -it -d shoorkaii/gitlab-ci-react-native-android /bin/bash
	docker attach HASH
	docker stop 3c854ac65f64d424c097e639c002b50431454e839b5c551ec2a929dcbecb7176
	

Tag summary

Content type

Image

Digest

Size

2.7 GB

Last updated

about 7 years ago

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