Skip to content

Commit 00d283c

Browse files
authored
Add a cloudbuild.yaml for tag releases. (GoogleContainerTools#126)
1 parent b726215 commit 00d283c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cloudbuild-release.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This cloudbuild is run on the creation of new tags, which should signify releases.
2+
steps:
3+
# Build the container that will do the go build.
4+
- name: 'gcr.io/cloud-builders/docker'
5+
args: ['build', '-t', 'builder', '-f', 'Dockerfile.build', '.']
6+
# Do the go build.
7+
- name: 'builder'
8+
args: ['make', 'cross']
9+
# Upload to GCS.
10+
- name: 'gcr.io/cloud-builders/gsutil'
11+
args: ['cp', '-r', 'out/*', 'gs://container-diff/$TAG_NAME/']
12+
# Tag as 'latest'.
13+
- name: 'gcr.io/cloud-builders/gsutil'
14+
args: ['cp', '-r', 'gs://container-diff/$TAG_NAME/*', 'gs://container-diff/latest/']

0 commit comments

Comments
 (0)