Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
cloudbuild: try sourceProvenanceHash option
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Feb 11, 2020
1 parent 6dae4f1 commit 9ef8704
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
steps:
- name: justinsb/git-fingerprint

- name: gcr.io/cloud-builders/bazel
args: ['version']

Expand All @@ -7,9 +9,26 @@ steps:
# To build with GCS cache
#args: ['build', '--google_default_credentials', '--spawn_strategy=remote', '--genrule_strategy=remote', '--strategy=Javac=remote', '--strategy=Closure=remote', '--remote_http_cache=https://storage.googleapis.com/cache-bucket', '//cmd/...']

- name: gcr.io/cloud-builders/bazel
args: ['test', '//test/...', '--test_output=streamed', '--local_test_jobs=1']
# Temporary removed
#- name: gcr.io/cloud-builders/bazel
# args: ['test', '//test/...', '--test_output=streamed', '--local_test_jobs=1']

- name: debian:stretch
args: ['mkdir', '-p', 'staging/ctl']

- name: debian:stretch
args: ['cp', 'bazel-bin/cmd/etcd-manager/linux_amd64_stripped/etcd-manager', 'staging/']
- name: debian:stretch
args: ['cp', 'bazel-bin/cmd/etcd-manager-ctl/linux_amd64_stripped/etcd-manager-ctl', 'staging/ctl/']

artifacts:
objects:
location: 'gs://$_GCS_LOCATION/$REPO_NAME/$COMMIT_SHA'
#paths: ['bazel-bin/cmd/etcd-manager-ctl/linux_amd64_stripped/etcd-manager-ctl', 'bazel-bin/cmd/etcd-manager/linux_amd64_stripped/etcd-manager']
paths: ['staging/*']

timeout: 1800s
options:
machineType: N1_HIGHCPU_8
requestedVerifyOption: VERIFIED
sourceProvenanceHash: [ "SHA256" ]

0 comments on commit 9ef8704

Please sign in to comment.