-
Notifications
You must be signed in to change notification settings - Fork 0
/
semaphore.yml
84 lines (84 loc) · 2.47 KB
/
semaphore.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: v1.0
name: Initial Pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
global_job_config:
prologue:
commands:
- checkout
env_vars:
- name: STAGE
value: "prod"
- name: API_BASE_URL
value: "https://apiv1.entrepic.com"
blocks:
- name: Production iOS
dependencies: []
run:
when: branch = 'master'
task:
agent:
machine:
type: a1-standard-4
os_image: macos-xcode12
secrets:
- name: rn-proj-pronetplat-aa-ios
env_vars:
- name: MATCH_PASSWORD
value: $MATCH_PASSWORD
- name: APPSTORE_KEY_ID
value: $APPSTORE_KEY_ID
- name: APPSTORE_ISSUER_ID
value: $APPSTORE_ISSUER_ID
- name: APPLE_ID
value: $APPLE_ID
- name: ITUNES_TEAM_ID
value: $ITUNES_TEAM_ID
- name: APPSTORE_TEAM_ID
value: $APPSTORE_TEAM_ID
- name: MATCH_REPO
value: $MATCH_REPO
- name: MATCH_GIT_BASIC_AUTHORIZATION
value: $GIT_PAT
jobs:
- name: Build and deploy ios
commands:
- cp src/env.example.js src/env.js
- cp ~/FastlaneDeploymentCI.p8 ios/FastlaneDeploymentCI.p8
- cp ~/GoogleService-Info.plist ios/proj_pronetplat_aa/GoogleService-Info.plist
- bundle
- yarn --ignore-engines --prefer-offline
- cd ios
- pod install
- bundle exec fastlane ios preprod
- name: Production Android
dependencies: []
run:
when: branch = 'master'
task:
agent:
machine:
type: e1-standard-2
containers:
- name: main
image: 'reactnativecommunity/react-native-android'
secrets:
- name: rn-proj-pronetplat-aa-android
env_vars:
- name: KEYSTORE_PASSWORD
value: $KEYSTORE_PASSWORD
jobs:
- name: Build and deploy android
commands:
- cp ~/service-account.json android/service-account.json
- cp ~/google-services.json android/app/google-services.json
- cp ~/my-upload-key.keystore android/app/my-upload-key.keystore
- cp android/template.gradle.properties android/gradle.properties
- cp src/env.example.js src/env.js
- yarn keystore-password
- bundle
- yarn --ignore-engines --prefer-offline
- cd android
- bundle exec fastlane android preprod