-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
40 lines (35 loc) · 1016 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
image: patwoz/expo-cli:3
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
stages:
- publish
- staging
before_script:
- cd app
- cat $GOOGLE_CONFIG > .google-services.json
- cat $FIREBASE_CONFIG_DEV > ./src/config/authmiaajuda-firebase-dev.json
- cat $FIREBASE_CONFIG > ./src/config/authmiaajuda-firebase.json
- yarn install --pure-lockfile --non-interactive
publishing:
stage: publish
script:
- chmod +x ./setup_env.sh
- ./setup_env.sh
- echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
- expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
- expo publish --release-channel prod --non-interactive
only:
- master
staging:
stage: staging
script:
- chmod +x ./setup_env.sh
- ./setup_env.sh
- echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
- expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
- expo publish --release-channel staging --non-interactive
only:
- develop