Add GCB cloudbuild.yaml config for CD to staging (#79)

This commit is contained in:
davidstanke 2018-10-16 16:25:57 -04:00 committed by Ahmet Alp Balkan
parent 51da4930ae
commit a815e029ab

17
cloudbuild.yaml Normal file
View file

@ -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'