Skip to content

Commit

Permalink
add GCP cloudbuilder files
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Mar 31, 2020
1 parent a8f8ae7 commit 2b24ee2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/gcp/cloudbuild-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:

- name: 'gcr.io/cloud-builders/go:debian'
args: [ 'mod', 'vendor']
env:
- 'PROJECT_ROOT=github.com/hofstadter-io/hof'

- name: 'gcr.io/cloud-builders/go:debian'
args: [ 'build', '-o', 'hof-$BRANCH_NAME']
env:
- 'PROJECT_ROOT=github.com/hofstadter-io/hof'

- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', 'hof-$BRANCH_NAME', 'gs://hof-io--develop-internal/hof/hof-$BRANCH_NAME']


15 changes: 15 additions & 0 deletions ci/gcp/cloudbuild-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:

- name: 'gcr.io/cloud-builders/go:debian'
args: [ 'mod', 'vendor']
env:
- 'PROJECT_ROOT=github.com/hofstadter-io/hof'

- name: 'gcr.io/cloud-builders/go:debian'
args: [ 'build', '-o', 'hof-$TAG_NAME']
env:
- 'PROJECT_ROOT=github.com/hofstadter-io/hof'

- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', 'hof-$TAG_NAME', 'gs://hof-io--develop-internal/hof/hof-$TAG_NAME']

0 comments on commit 2b24ee2

Please sign in to comment.