summaryrefslogtreecommitdiffhomepage
path: root/cloudbuild
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-06-03 18:04:43 -0700
committerShentubot <shentubot@google.com>2019-06-03 18:05:59 -0700
commit18e6e63503251cdc0b9432765b6eaa9ffa002824 (patch)
tree182f9f559d2e5b54f8bf38a6b7f389d4168a4c88 /cloudbuild
parentbfe32209923472da2d8e263b6cb725a2e64a8689 (diff)
Allow specification of origin in cloudbuild.
PiperOrigin-RevId: 251347966
Diffstat (limited to 'cloudbuild')
-rw-r--r--cloudbuild/go.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudbuild/go.yaml b/cloudbuild/go.yaml
index 23dbf524e..a38ef71fc 100644
--- a/cloudbuild/go.yaml
+++ b/cloudbuild/go.yaml
@@ -17,4 +17,6 @@ steps:
entrypoint: 'bash'
args:
- '-c'
- - 'if [[ "$BRANCH_NAME" == "master" ]]; then git push origin go:go; fi'
+ - 'if [[ "$BRANCH_NAME" == "master" ]]; then git push "${_ORIGIN}" go:go; fi'
+substitutions:
+ _ORIGIN: origin