Skip to content

Commit 0a90e4c

Browse files
authored
Produce linux/arm64 binaries for use in container_test (#266)
1 parent b5cafe3 commit 0a90e4c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

deploy/cloudbuild.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ steps:
44
- name: 'gcr.io/cloud-builders/docker'
55
args: ['build', '-t', 'builder', '-f', 'deploy/Dockerfile.build', '.']
66

7-
# Do the go build
8-
- name: 'builder'
7+
# Do the go build for amd64
8+
- name: 'builder-amd64'
99
args: ['make', 'cross']
10+
env: ['GOARCH=amd64']
11+
12+
# Do the go build for arm64
13+
- name: 'builder-arm64'
14+
args: ['make', 'cross']
15+
env: ['GOARCH=arm64']
1016

1117
# Upload to GCS
1218
- name: 'gcr.io/cloud-builders/gsutil'

deploy/release_cloudbuild.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ steps:
55
- name: 'gcr.io/cloud-builders/docker'
66
args: ['build', '-t', 'builder', '-f', 'deploy/Dockerfile.build', '.']
77

8-
# Do the go build
9-
- name: 'builder'
8+
# Do the go build for amd64
9+
- name: 'builder-amd64'
1010
args: ['make', 'cross']
11+
env: ['GOARCH=amd64']
12+
13+
# Do the go build for arm64
14+
- name: 'builder-arm64'
15+
args: ['make', 'cross']
16+
env: ['GOARCH=arm64']
1117

1218
# Upload to GCS
1319
- name: 'gcr.io/cloud-builders/gsutil'

0 commit comments

Comments
 (0)