-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy-all.sh
executable file
·54 lines (48 loc) · 1.22 KB
/
deploy-all.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
#!/bin/sh
set -e
cd $(dirname $0)
( cd global-config && pulumi up -r -s OpenTTD/prod )
( cd aws-core && pulumi up -r -s OpenTTD/prod )
( cd oci-core && pulumi up -r -s OpenTTD/prod )
( cd cloudflare-core && pulumi up -r -s OpenTTD/prod )
( cd nomad-core && pulumi up -r -s OpenTTD/prod-aws )
( cd nomad-core && pulumi up -r -s OpenTTD/prod-oci )
APP_LIST="
bananas
binaries
cdn
dibridge
docs
dorpsgek
eints
multiplayer
preview
redirect
survey-web
symbols
website
wiki
wiki-data
"
IFS="
"
for app in ${APP_LIST}; do
if [ -e app/${app}/Pulumi.preview.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/preview )
fi
if [ -e app/${app}/Pulumi.preview-oci.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/preview-oci )
fi
if [ -e app/${app}/Pulumi.preview-aws.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/preview-aws )
fi
if [ -e app/${app}/Pulumi.prod.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/prod )
fi
if [ -e app/${app}/Pulumi.prod-aws.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/prod-aws )
fi
if [ -e app/${app}/Pulumi.prod-oci.yaml ]; then
( cd app/${app} && pulumi up -r -s OpenTTD/prod-oci )
fi
done