Allow specification of origin in cloudbuild.

PiperOrigin-RevId: 251347966
This commit is contained in:
Adin Scannell
2019-06-03 18:05:59 -07:00
committed by Shentubot
parent bfe3220992
commit 18e6e63503
+3 -1
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