Allow specification of origin in cloudbuild.

PiperOrigin-RevId: 251347966
This commit is contained in:
Adin Scannell 2019-06-03 18:04:43 -07:00 committed by Shentubot
parent bfe3220992
commit 18e6e63503
1 changed files with 3 additions and 1 deletions

View File

@ -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