-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
37 lines (30 loc) · 1.03 KB
/
cloudbuild.yaml
File metadata and controls
37 lines (30 loc) · 1.03 KB
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
# This build is run on every merge to master.
steps:
# Build the container that will do the go build.
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'builder', '-f', 'deploy/Dockerfile.build', '.']
# Do the go build for amd64
- name: 'builder'
args: ['make', 'cross']
env: ['GOARCH=amd64']
# Do the go build for arm64
- name: 'builder'
args: ['make', 'cross']
env: ['GOARCH=arm64']
# Do the go build for s390x
- name: 'builder'
args: ['make', 'cross']
env: ['GOARCH=s390x']
# Do the go build for ppc64le
- name: 'builder'
args: ['make', 'cross']
env: ['GOARCH=ppc64le']
# Upload to GCS
- name: 'gcr.io/cloud-builders/gcloud'
args: ['storage', 'cp', '--recursive', 'out/*', 'gs://container-structure-test/builds/$COMMIT_SHA/']
# Build the image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/gcp-runtimes/container-structure-test:$COMMIT_SHA',
'-f', 'deploy/Dockerfile', '.']
images:
- 'gcr.io/gcp-runtimes/container-structure-test:$COMMIT_SHA'