From 2020e79b69608044358830be32c6ef9e6d8e15e9 Mon Sep 17 00:00:00 2001 From: Dave Stanke Date: Tue, 16 Oct 2018 16:23:38 -0400 Subject: [PATCH] Add GCB cloudbuild.yaml config for CD to staging --- cloudbuild.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 0000000..9992da2 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,17 @@ +# Cloudbuild.yaml to deploy to prod +# +# PREREQUISITES: +# Skaffold builder image must be present in this project's container registry +# (see https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/skaffold) +# +# Cloud Build service account must have "Kubernetes Engine Developer" role + +steps: +- name: gcr.io/$PROJECT_ID/skaffold + args: ['run', '-f=skaffold.yaml'] + env: + - 'CLOUDSDK_COMPUTE_ZONE=us-central1-b' + - 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging' +timeout: 1800s +options: # Add more power, and more time, for heavy Skaffold build + machineType: 'N1_HIGHCPU_8' \ No newline at end of file