-
Notifications
You must be signed in to change notification settings - Fork 12
/
bitrise.yml
200 lines (200 loc) · 5.46 KB
/
bitrise.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: develop
workflow: deploy_staging
- push_branch: master
workflow: deploy_app_store
- push_branch: main
workflow: deploy_app_store
- push_branch: release
workflow: deploy_release_firebase
- push_branch: "*"
workflow: test
workflows:
deploy_app_store:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script@1:
inputs:
- content: |-
#!/bin/bash
set -ex
RBENV_DIR="`cd $(rbenv which ruby)/../..;pwd`"
echo "Gem cache directory: $RBENV_DIR"
envman add --key GEM_CACHE_PATH --value $RBENV_DIR
title: Set GEM_CACHE_PATH env var
- [email protected]: {}
- cache-pull@2: {}
- cocoapods-install@2: {}
- [email protected]: {}
- fastlane-match@0:
inputs:
- type: appstore
- team_id: "$TEAM_ID"
- decrypt_password: "$MATCH_PASSWORD"
- git_url: "$MATCH_REPO_URL"
- app_id: "$BUNDLE_ID"
- fastlane@3:
title: Build and upload Production app to App Store
inputs:
- lane: buildAndUploadToAppStoreLane
- deploy-to-bitrise-io:
inputs:
- deploy_path: $BUILD_PATH
is_always_run: false
- cache-push@2:
inputs:
- cache_paths: |-
./Pods -> ./Podfile.lock
$BITRISE_CACHE_DIR
$GEM_CACHE_PATH
envs:
- opts:
is_expand: false
BUNDLE_ID: {BUNDLE_ID_PRODUCTION}
- opts:
is_expand: false
BITRISE_SCHEME: {PROJECT_NAME}
deploy_release_firebase:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script@1:
inputs:
- content: |-
#!/bin/bash
set -ex
RBENV_DIR="`cd $(rbenv which ruby)/../..;pwd`"
echo "Gem cache directory: $RBENV_DIR"
envman add --key GEM_CACHE_PATH --value $RBENV_DIR
title: Set GEM_CACHE_PATH env var
- [email protected]: {}
- cache-pull@2: {}
- cocoapods-install@2: {}
- [email protected]: {}
- fastlane-match@0:
inputs:
- type: appstore
- team_id: "$TEAM_ID"
- app_id: "$BUNDLE_ID"
- git_url: "$MATCH_REPO_URL"
- decrypt_password: "$MATCH_PASSWORD"
- fastlane@3:
title: Build and Upload Production App
inputs:
- lane: buildProductionAndUploadToFirebaseLane
- deploy-to-bitrise-io:
inputs:
- deploy_path: $BUILD_PATH
is_always_run: false
- cache-push@2:
inputs:
- cache_paths: |-
./Pods -> ./Podfile.lock
$BITRISE_CACHE_DIR
$GEM_CACHE_PATH
envs:
- opts:
is_expand: false
BUNDLE_ID: {BUNDLE_ID_PRODUCTION}
- opts:
is_expand: false
BITRISE_SCHEME: {PROJECT_NAME}
deploy_staging:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script@1:
inputs:
- content: |-
#!/bin/bash
set -ex
RBENV_DIR="`cd $(rbenv which ruby)/../..;pwd`"
echo "Gem cache directory: $RBENV_DIR"
envman add --key GEM_CACHE_PATH --value $RBENV_DIR
title: Set GEM_CACHE_PATH env var
- [email protected]: {}
- cache-pull@2: {}
- cocoapods-install@2: {}
- [email protected]: {}
- fastlane-match@0:
inputs:
- type: adhoc
- team_id: "$TEAM_ID"
- app_id: "$BUNDLE_ID"
- git_url: "$MATCH_REPO_URL"
- decrypt_password: "$MATCH_PASSWORD"
- fastlane@3:
title: Build and Upload Staging App
inputs:
- lane: buildStagingAndUploadToFirebaseLane
- deploy-to-bitrise-io:
inputs:
- deploy_path: $BUILD_PATH
is_always_run: false
- cache-push@2:
inputs:
- cache_paths: |-
./Pods -> ./Podfile.lock
$BITRISE_CACHE_DIR
$GEM_CACHE_PATH
envs:
- opts:
is_expand: false
BUNDLE_ID: {BUNDLE_ID_STAGING}
- opts:
is_expand: false
BITRISE_SCHEME: {PROJECT_NAME} Staging
test:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script@1:
inputs:
- content: |-
#!/bin/bash
set -ex
RBENV_DIR="`cd $(rbenv which ruby)/../..;pwd`"
echo "Gem cache directory: $RBENV_DIR"
envman add --key GEM_CACHE_PATH --value $RBENV_DIR
title: Set GEM_CACHE_PATH env var
- [email protected]: {}
- cache-pull@2: {}
- cocoapods-install@2: {}
- fastlane@3:
inputs:
- lane: buildAndTestLane
- fastlane@3:
inputs:
- lane: cleanUpOutputLane
- danger@2:
inputs:
- github_api_token: "$DANGER_GITHUB_API_TOKEN"
- cache-push@2:
inputs:
- cache_paths: |-
./Pods -> ./Podfile.lock
$BITRISE_CACHE_DIR
$GEM_CACHE_PATH
envs:
- opts:
is_expand: false
BUNDLE_ID: {BUNDLE_ID_STAGING}
- opts:
is_expand: false
BITRISE_SCHEME: {PROJECT_NAME} Staging
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: {PROJECT_NAME}.xcworkspace
- opts:
is_expand: false
TEAM_ID: TEAMID
- opts:
is_expand: false
MATCH_REPO_URL: https://github.com/nimblehq/fastlane-match.git