-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-options.sh
60 lines (53 loc) · 2.12 KB
/
deploy-options.sh
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
#!/usr/bin/env bash
# If enabled, console will be cleared on every script run.
# By default, this option is enabled
use_automatic_console_clean=true
# If enabled, not pushed commits will be pushed automatically without confirmation dialog.
# By default, this option is disabled
enable_automatic_commit_push=false
# If enabled, confirmation dialog with deploy summary will be presented.
# By default, this option is enabled
enable_final_confirmation=true
#########################################################
# DEPLOY OPTIONS #
# #
# Part of script that should be edited by the user. #
# #
# You can add/remove/edit targets that you want to use #
# for the deployment. #
# #
# This will generate first part of tag. #
#########################################################
## Used for the option select by the user
## And for generating first part of the tag.
## If option is added to the "Select target"
## same option should be added under the
## if/else logic for creating the first part.
function deploy_options {
# Options shown to the user
echo
echo "###############################################################"
echo "# DEPLOY TARGET SELECTION #"
echo "###############################################################"
echo
echo "--------------"
echo "| TryOutApps |"
echo "--------------"
echo
echo "[0] Staging"
echo "[1] UAT"
echo "[2] Production"
echo
echo "=================="
echo
echo "---------------------"
echo "| APP STORE CONNECT |"
echo "---------------------"
echo
echo "[3] App Store"
echo
read -r -p "Enter number in square brackets: " target_selection
# Array for creating first part of the tag.
# Should be in sync with options shown to the user.
environments=("internal-staging" "internal-uat" "internal-production" "appstore")
}