forked from GoogleCloudPlatform/compute-image-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli_tools_cloudbuild.yaml
329 lines (315 loc) · 21.9 KB
/
cli_tools_cloudbuild.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
timeout: 3600s
options:
env:
- GO111MODULE=auto
- GOPROXY=https://proxy.golang.org
volumes:
- name: go-pkg
path: /go/pkg
- name: go-src
path: /go/src
substitutions:
_RELEASE: 'latest'
steps:
# Build daisy.
- name: 'golang'
dir: 'daisy/cli'
args: ['go', 'build', '-o=/workspace/linux/daisy']
env: ['CGO_ENABLED=0']
- name: 'golang'
dir: 'daisy/cli'
args: ['go', 'build', '-o=/workspace/windows/daisy']
env: ['GOOS=windows']
- name: 'golang'
dir: 'daisy/cli'
args: ['go', 'build', '-o=/workspace/darwin/daisy']
env: ['GOOS=darwin']
- name: 'gcr.io/kaniko-project/executor:v1.0.0'
args:
- --destination=gcr.io/$PROJECT_ID/daisy:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/daisy:$COMMIT_SHA
- --context=/workspace
- --dockerfile=daisy.Dockerfile
# Build gce_image_publish.
- name: 'golang'
dir: 'cli_tools/gce_image_publish'
args: ['go', 'build', '-o=/workspace/linux/gce_image_publish']
env: ['CGO_ENABLED=0']
- name: 'golang'
dir: 'cli_tools/gce_image_publish'
args: ['go', 'build', '-o=/workspace/windows/gce_image_publish.exe']
env: ['GOOS=windows']
- name: 'golang'
dir: 'cli_tools/gce_image_publish'
args: ['go', 'build', '-o=/workspace/darwin/gce_image_publish']
env: ['GOOS=darwin']
- name: 'gcr.io/kaniko-project/executor:v1.0.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_image_publish:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_image_publish:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_image_publish.Dockerfile
# Build gce_export.
- name: 'golang'
dir: 'cli_tools/gce_export'
args: ['go', 'build', '-o=/workspace/linux/gce_export']
env: ['CGO_ENABLED=0']
- name: 'golang'
dir: 'cli_tools/gce_export'
args: ['go', 'build', '-o=/workspace/windows/gce_export']
env: ['GOOS=windows']
- name: 'gcr.io/kaniko-project/executor:v1.0.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_export:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_export:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_export.Dockerfile
# Build import_precheck.
- name: 'golang'
dir: 'cli_tools/import_precheck'
args: ['go', 'build', '-o=/workspace/linux/import_precheck']
env: ['CGO_ENABLED=0']
- name: 'golang'
dir: 'cli_tools/import_precheck'
args: ['go', 'build', '-o=/workspace/windows/import_precheck.exe']
env: ['GOOS=windows']
# Build gce_vm_image_import.
- name: 'golang'
dir: 'cli_tools/gce_vm_image_import'
args: ['go', 'build', '-o=/workspace/linux/gce_vm_image_import']
env: ['CGO_ENABLED=0']
- name: 'gcr.io/kaniko-project/executor:v1.1.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_vm_image_import:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_vm_image_import:$COMMIT_SHA
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$_RELEASE
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_import:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_vm_image_import.Dockerfile
# Build gce_vm_image_export.
- name: 'golang'
dir: 'cli_tools/gce_vm_image_export'
args: ['go', 'build', '-o=/workspace/linux/gce_vm_image_export']
env: ['CGO_ENABLED=0']
- name: 'gcr.io/kaniko-project/executor:v1.1.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_vm_image_export:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_vm_image_export:$COMMIT_SHA
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$_RELEASE
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_vm_image_export:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_vm_image_export.Dockerfile
# Build gce_ovf_import.
- name: 'golang'
dir: 'cli_tools/gce_ovf_import'
args: ['go', 'build', '-o=/workspace/linux/gce_ovf_import']
env: ['CGO_ENABLED=0']
- name: 'gcr.io/kaniko-project/executor:v1.1.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_ovf_import:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_ovf_import:$COMMIT_SHA
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$_RELEASE
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_ovf_import:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_ovf_import.Dockerfile
# Build gce_windows_upgrade.
- name: 'golang'
dir: 'cli_tools/gce_windows_upgrade'
args: ['go', 'build', '-o=/workspace/linux/gce_windows_upgrade']
env: ['CGO_ENABLED=0']
- name: 'gcr.io/kaniko-project/executor:v1.1.0'
args:
- --destination=gcr.io/$PROJECT_ID/gce_windows_upgrade:$_RELEASE
- --destination=gcr.io/$PROJECT_ID/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-central1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=us-east4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=southamerica-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-north1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-west1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-west2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-west3-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-west4-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=europe-west6-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-east1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-east2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-northeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-northeast2-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-south1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=asia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$_RELEASE
- --destination=australia-southeast1-docker.pkg.dev/$PROJECT_ID/wrappers/gce_windows_upgrade:$COMMIT_SHA
- --context=/workspace
- --dockerfile=gce_windows_upgrade.Dockerfile
# Copy Linux binaries to GCS
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '/workspace/linux/*', 'gs://$PROJECT_ID/$_RELEASE/linux/']
# Copy Windows binaries to GCS
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '/workspace/windows/*', 'gs://$PROJECT_ID/$_RELEASE/windows/']
# Copy OSX binaries to GCS
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '/workspace/darwin/*', 'gs://$PROJECT_ID/$_RELEASE/darwin/']
# Make binaries world-readable.
- name: 'gcr.io/cloud-builders/gsutil'
args: ['-m', 'acl', '-r', 'ch', '-u', 'AllUsers:R', 'gs://$PROJECT_ID/$_RELEASE/*']