summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIan Lewis <ianmlewis@gmail.com>2019-04-03 03:37:27 -0400
committerIan Lewis <ianlewis@google.com>2019-04-04 08:56:40 +0900
commit0fa5356531014baa82606c15fcc401cd5012ef84 (patch)
tree864472bf6698f55b73bcbf95f980e799d4b00f2a
parent51bfff9f74e3e25a05d070bae19b89aef2187643 (diff)
Only deploy if in the gvisor-website project
-rw-r--r--cloudbuild.yaml3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
index 8917b0bf8..d53e52614 100644
--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -24,5 +24,4 @@ steps:
entrypoint: 'bash'
args:
- '-c'
- - |
- [[ "$BRANCH_NAME" == "master" ]] && gcloud app deploy public/app.yaml || true
+ - 'if [[ "$PROJECT_ID" == "gvisor-website" && "$BRANCH_NAME" == "master" ]]; then gcloud app deploy public/app.yaml; fi'