use stock gcb image for skaffold (#81)

cc: @davidstanke
This commit is contained in:
Ahmet Alp Balkan 2018-10-17 15:15:28 -07:00 committed by GitHub
parent a815e029ab
commit 73ebd4debb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,17 @@
# Cloudbuild.yaml to deploy to prod # This file is used to build and deploy the app into a GKE cluster using Google
# Cloud Build.
# #
# PREREQUISITES: # Requirements:
# Skaffold builder image must be present in this project's container registry # - Give the Google Cloud Build service account "Kubernetes Engine Developer"
# (see https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/skaffold) # IAM role on the GCP project.
# # - Set up Google Cloud Build trigger on Cloud Console.
# Cloud Build service account must have "Kubernetes Engine Developer" role
steps: steps:
- name: gcr.io/$PROJECT_ID/skaffold - name: gcr.io/k8s-skaffold/skaffold:v0.16.0
args: ['run', '-f=skaffold.yaml'] args: ['skaffold', 'run', '-f=skaffold.yaml']
env: env:
- 'CLOUDSDK_COMPUTE_ZONE=us-central1-b' - 'CLOUDSDK_COMPUTE_ZONE=us-central1-b'
- 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging' - 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging'
timeout: 1800s timeout: 1800s
options: # Add more power, and more time, for heavy Skaffold build options: # Add more power, and more time, for heavy Skaffold build
machineType: 'N1_HIGHCPU_8' machineType: 'N1_HIGHCPU_8'