-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_all.sh
49 lines (46 loc) · 1.15 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
ENV=${1:?"Must set environment as first arg"}
echo $ENV
echo """
steps:
- name: 'gcr.io/cloud-builders/gcloud'
id: base
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'BasePythonImage'
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'CogMaker'
waitFor:
- base
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'CogServer'
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'GeoparquetMaker'
waitFor:
- base
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'Geoparquet2Pmtiles'
waitFor:
- base
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'MBTilesServer'
waitFor:
- base
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['tools/build_and_submit.sh', '$ENV']
dir: 'DamageAssessment'
waitFor:
- base
""" > /tmp/cloudbuild.yaml
gcloud builds submit \
--config /tmp/cloudbuild.yaml