summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-04-02 16:19:47 -0700
committerAdin Scannell <ascannell@google.com>2019-04-02 16:19:47 -0700
commit63d5bb5a161a7231f0cc2b8a9a3005210b4157f1 (patch)
tree9269ab86815d2da980fa045e39c87ecb2257b742
parentd81ea7a799cd39fa23ff7b26a3bc0c8a0d894dc1 (diff)
Update the conditional deploy
-rw-r--r--cloudbuild.yaml16
1 files changed, 8 insertions, 8 deletions
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
index aabd3e88c..cd6803ac0 100644
--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -1,11 +1,11 @@
# Copyright 2019 Google LLC
-#
+#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# https://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -13,16 +13,16 @@
# limitations under the License.
steps:
- # Generate the website
+ # Generate the website.
- name: 'gcr.io/gvisor-website/hugo:0.53'
args: ["make"]
- # Test the HTML for issues
+ # Test the HTML for issues.
- name: 'gcr.io/gvisor-website/html-proofer:3.10.2'
args: ["htmlproofer", "--disable-external", "public/static"]
- # Deploy to App Engine only for master branch
+ # Deploy to App Engine only for master branch.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
- args:
+ args:
- '-c'
- |
- [[ "$BRANCH_NAME" == "master" ]] && gcloud app deploy public/app.yaml
+ [[ "$BRANCH_NAME" == "master" ]] && gcloud app deploy public/app.yaml || return 0