summaryrefslogtreecommitdiffhomepage
path: root/cloudbuild.yaml
diff options
context:
space:
mode:
authorIan Lewis <ianmlewis@gmail.com>2019-07-10 01:21:03 -0400
committerIan Lewis <ianlewis@google.com>2019-07-10 14:33:56 +0900
commit8a641256470955691d5851ffca9b4b890df8855c (patch)
treeee4c86c187397e42484ad566a5fc9189577544a2 /cloudbuild.yaml
parent6714bee53bbe6cdc3943e59f30ec7765907e80b0 (diff)
Copy app engine app files in cloudbuild
Fixes website deploy step
Diffstat (limited to 'cloudbuild.yaml')
-rw-r--r--cloudbuild.yaml15
1 files changed, 9 insertions, 6 deletions
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
index f8bf38566..d44b448f5 100644
--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -24,7 +24,7 @@ steps:
dir: 'upstream'
# Build runsc
- name: 'gcr.io/cloud-builders/bazel'
- args:
+ args:
- 'build'
- '--show_timestamps'
- '--test_output=errors'
@@ -35,7 +35,7 @@ steps:
# Build the compatibility doc generator tool
- name: 'golang'
env: ['GO111MODULE=on']
- args:
+ args:
- 'go'
- 'build'
- '-o'
@@ -43,22 +43,25 @@ steps:
- 'gvisor.dev/website/cmd/generate-syscall-docs'
# Generate compatibility docs.
- name: 'bash'
- args:
+ args:
- 'bash'
- '-c'
- - >
+ - >
./upstream/gvisor/bazel-bin/runsc/linux_amd64_pure_stripped/runsc help syscalls -o json |
./bin/generate-syscall-docs -out ./content/docs/user_guide/compatibility/
# Pull npm dependencies for scss
- name: 'gcr.io/cloud-builders/npm'
args: ['ci']
+ # Copy App Engine app files.
+ - name: 'gcr.io/gvisor-website/hugo:0.53'
+ args: ["make", "app"]
# Generate the website.
- name: 'gcr.io/gvisor-website/hugo:0.53'
env: ['HUGO_ENV=production']
args: ["hugo"]
# Test the HTML for issues.
- name: 'gcr.io/gvisor-website/html-proofer:3.10.2'
- args:
+ args:
- "htmlproofer"
- "--disable-external"
- "--check-html"
@@ -66,7 +69,7 @@ steps:
# Deploy to App Engine only for master branch.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
- args:
+ args:
- '-c'
- >
if [[ "$PROJECT_ID" == "gvisor-website" && "$BRANCH_NAME" == "master" ]]; then