Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Add a cloudbuild.yaml for tag releases. #126

Merged
merged 1 commit into from
Oct 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cloudbuild-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This cloudbuild is run on the creation of new tags, which should signify releases.
steps:
# Build the container that will do the go build.
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'builder', '-f', 'Dockerfile.build', '.']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see Dockerfile.build anywhere, do you need to check it in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should have just been added in b726215

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yep looks like my pull didn't finish before I said that, spoke too soon :)

# Do the go build.
- name: 'builder'
args: ['make', 'cross']
# Upload to GCS.
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '-r', 'out/*', 'gs://container-diff/$TAG_NAME/']
# Tag as 'latest'.
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '-r', 'gs://container-diff/$TAG_NAME/*', 'gs://container-diff/latest/']