File tree 2 files changed +29
-14
lines changed
2 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 8
8
type : choice
9
9
required : true
10
10
options :
11
- - live-preprod
12
- - live-preview
13
- - dev-preprod
14
- - dev-preview
15
- - staging-preprod
11
+ - ' dev'
12
+ - ' staging'
13
+ - ' live'
16
14
network :
17
15
description : ' Target network'
18
16
type : choice
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
set -x
5
- set -o
6
5
7
- case $2 in
6
+ target=" ${ENVIRONMENT} -${NETWORK} "
7
+
8
+ case $CLUSTER in
8
9
any)
9
- environment=" $1 "
10
+ environment=" ${target} "
10
11
;;
11
12
* )
12
- environment=" $1 . $2 "
13
+ environment=" ${target} . ${CLUSTER} "
13
14
;;
14
15
esac
15
16
17
+ case $NETWORK in
18
+ preprod)
19
+ networkMagic=1
20
+ ;;
21
+ preview)
22
+ networkMagic=2
23
+ ;;
24
+ sanchonet)
25
+ networkMagic=4
26
+ ;;
27
+ * )
28
+ echo " ${NETWORK} : Unknown network"
29
+ exit 1
30
+ ;;
31
+ esac
32
+
33
+ echo $environment
34
+ echo $networkMagic
35
+
16
36
domain=" ${environment} .lw.iog.io"
17
37
url=" https://${domain} /"
18
38
19
39
# Construct the environment file content
20
40
envFileContent="
21
- # Logger
22
41
LOGGER_MIN_SEVERITY=info
23
42
24
- # Key management setup - required by getWallet
25
- KEY_MANAGEMENT_PROVIDER=inMemory
26
-
27
43
# Providers setup - required by getWallet
28
44
TEST_CLIENT_ASSET_PROVIDER=http
29
45
TEST_CLIENT_ASSET_PROVIDER_PARAMS='{\" baseUrl\" :\" ${url} \" }'
@@ -42,7 +58,8 @@ TEST_CLIENT_UTXO_PROVIDER_PARAMS='{\"baseUrl\":\"${url}\"}'
42
58
TEST_CLIENT_STAKE_POOL_PROVIDER=http
43
59
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS='{\" baseUrl\" :\" ${url} \" }'
44
60
WS_PROVIDER_URL='wss://${domain} /ws'
45
- "
61
+
62
+ KEY_MANAGEMENT_PROVIDER=inMemory"
46
63
47
64
# Write the environment file content to the specified file
48
65
echo " $envFileContent " > .env
You can’t perform that action at this time.
0 commit comments