Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scl
boilerplate
mobile-moko-boilerplate
Commits
2ab4a3d2
Commit
2ab4a3d2
authored
Jun 05, 2022
by
Aleksey Mikhailov
🗻
Browse files
gitlab distribution configuration
parent
b4e21d28
Pipeline
#46783
failed with stages
in 1 minute and 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2ab4a3d2
include
:
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
master
/.common.yml'
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
master
/.ios.yml'
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
master
/.android.yml'
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
gitlab-distribution
/.common.yml'
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
gitlab-distribution
/.ios.yml'
-
'
https://gitlab.icerockdev.com/open-source/gitlab-ci-mobile/-/raw/
gitlab-distribution
/.android.yml'
-
/testlab.yml
stages
:
...
...
@@ -57,7 +57,8 @@ build ios dev:
only
:
-
/^build/ios/dev/[0-9]*$/
deploy ios to dev firebase
:
# remove dot if you want firebase deploy
.deploy ios to dev firebase
:
extends
:
.deploy_ios_mpp_firebase
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_DEV
...
...
@@ -72,6 +73,20 @@ deploy ios to dev firebase:
only
:
-
/^build/ios/dev/[0-9]*$/
deploy ios to dev gitlab
:
extends
:
.deploy_ios_mpp_gitlab
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_DEV
BUILD_SCHEME
:
$IOS_SCHEME_DEV
BUILD_EXPORT_METHOD
:
'
enterprise'
<<
:
*ios_dev_pre_script
environment
:
name
:
gitlab ios dev
except
:
-
branches
only
:
-
/^build/ios/dev/[0-9]*$/
build ios stage
:
extends
:
.build_ios_mpp
variables
:
...
...
@@ -83,7 +98,8 @@ build ios stage:
only
:
-
/^build/ios/stage/[0-9]*$/
deploy ios to stage firebase
:
# remove dot if you want firebase deploy
.deploy ios to stage firebase
:
extends
:
.deploy_ios_mpp_firebase
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_STAGE
...
...
@@ -98,6 +114,20 @@ deploy ios to stage firebase:
only
:
-
/^build/ios/stage/[0-9]*$/
deploy ios to stage gitlab
:
extends
:
.deploy_ios_mpp_gitlab
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_STAGE
BUILD_SCHEME
:
$IOS_SCHEME_STAGE
BUILD_EXPORT_METHOD
:
'
enterprise'
<<
:
*ios_stage_pre_script
environment
:
name
:
gitlab ios stage
except
:
-
branches
only
:
-
/^build/ios/stage/[0-9]*$/
build ios prod
:
extends
:
.build_ios_mpp
variables
:
...
...
@@ -109,7 +139,8 @@ build ios prod:
only
:
-
/^build/ios/prod/[0-9]*$/
deploy ios to prod firebase
:
# remove dot if you want firebase deploy
.deploy ios to prod firebase
:
extends
:
.deploy_ios_mpp_firebase
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_PROD
...
...
@@ -124,6 +155,20 @@ deploy ios to prod firebase:
only
:
-
/^build/ios/prod/[0-9]*$/
deploy ios to prod gitlab
:
extends
:
.deploy_ios_mpp_gitlab
variables
:
BUILD_APP_IDENTIFIER
:
$IOS_BUNDLEID_PROD
BUILD_SCHEME
:
$IOS_SCHEME_PROD
BUILD_EXPORT_METHOD
:
'
ad-hoc'
<<
:
*ios_prod_pre_script
environment
:
name
:
gitlab ios prod
except
:
-
branches
only
:
-
/^build/ios/prod/[0-9]*$/
build ios prod appstore
:
extends
:
.build_ios_mpp
variables
:
...
...
@@ -184,7 +229,8 @@ build android prod:
only
:
-
/^build/android/prod/[0-9]*$/
deploy android dev to firebase
:
# remove dot if you want firebase deploy
.deploy android dev to firebase
:
extends
:
.deploy_android_firebase
variables
:
FIREBASE_APP_ID
:
$FIREBASE_APP_ID_ANDROID_DEV
...
...
@@ -195,6 +241,15 @@ deploy android dev to firebase:
only
:
-
/^build/android/dev/[0-9]*$/
deploy android dev to gitlab
:
extends
:
.deploy_android_gitlab
environment
:
name
:
gitlab android dev
except
:
-
branches
only
:
-
/^build/android/dev/[0-9]*$/
deploy testlab dev
:
extends
:
.deploy_android_firebase_test_lab
variables
:
...
...
@@ -206,7 +261,8 @@ deploy testlab dev:
only
:
-
/^build/android/dev/[0-9]*$/
deploy android stage to firebase
:
# remove dot if you want firebase deploy
.deploy android stage to firebase
:
extends
:
.deploy_android_firebase
variables
:
FIREBASE_APP_ID
:
$FIREBASE_APP_ID_ANDROID_STAGE
...
...
@@ -217,6 +273,15 @@ deploy android stage to firebase:
only
:
-
/^build/android/stage/[0-9]*$/
deploy android stage to gitlab
:
extends
:
.deploy_android_gitlab
environment
:
name
:
gitlab android stage
except
:
-
branches
only
:
-
/^build/android/stage/[0-9]*$/
deploy testlab stage
:
extends
:
.deploy_android_firebase_test_lab
variables
:
...
...
@@ -228,7 +293,8 @@ deploy testlab stage:
only
:
-
/^build/android/stage/[0-9]*$/
deploy android prod to firebase
:
# remove dot if you want firebase deploy
.deploy android prod to firebase
:
extends
:
.deploy_android_firebase
variables
:
FIREBASE_APP_ID
:
$FIREBASE_APP_ID_ANDROID_PROD
...
...
@@ -239,6 +305,15 @@ deploy android prod to firebase:
only
:
-
/^build/android/prod/[0-9]*$/
deploy android prod to gitlab
:
extends
:
.deploy_android_gitlab
environment
:
name
:
gitlab android prod
except
:
-
branches
only
:
-
/^build/android/prod/[0-9]*$/
deploy testlab prod
:
extends
:
.deploy_android_firebase_test_lab
variables
:
...
...
README.md
View file @
2ab4a3d2
...
...
@@ -41,12 +41,19 @@ Different parameter for production bundle needed for cases when you use fully di
-
Call
`./setup-android-signing.sh <key_name> <gitlab_token> <gitlab_project_id>`
-
commit and push created file
## Setup Firebase deploy
## Setup Firebase
AppDistribution
deploy
-
run
`firebase login:ci`
-
copy token from results
-
call
`./setup-firebase-deploy.sh <gitlab_token> <gitlab_project_id> <firebase_token>`
-
In the App Distribution page of the Firebase console, select the app you want to distribute, then click
`Get started`
-
in
`.gitlab-ci.yml`
remove dots at start of deploy firebase jobs
-
in
`.gitlab-ci.yml`
remove gitlab distribution jobs
## Setup GitLab Distribution deploy
-
get token from
[
Confluence
](
https://confluence.icerockdev.com/pages/viewpage.action?pageId=69437109
)
-
call
`./setup-gitlab-deploy.sh <gitlab_token> <gitlab_project_id> <deploy_token>`
## Setup iOS CI config
...
...
setup-gitlab-deploy.sh
0 → 100755
View file @
2ab4a3d2
#!/bin/bash
set
-euo
pipefail
GITLAB_TOKEN
=
$1
GITLAB_PROJECT_ID
=
$2
GITLAB_DISTRIB_TOKEN
=
$3
curl
--request
POST
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
\
"https://gitlab.icerockdev.com/api/v4/projects/
$GITLAB_PROJECT_ID
/variables"
\
--form
"key=GITLAB_DIST_TOKEN"
--form
"value=
$GITLAB_DISTRIB_TOKEN
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment