From fcea86370dde0028a305205c9069eb38f2a6d35d Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 16 Oct 2018 17:24:22 -0700 Subject: [PATCH] use stock gcb image for skaffold Signed-off-by: Ahmet Alp Balkan --- cloudbuild.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 9992da2..bd3e4cc 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -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: -# 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 +# Requirements: +# - Give the Google Cloud Build service account "Kubernetes Engine Developer" +# IAM role on the GCP project. +# - Set up Google Cloud Build trigger on Cloud Console. steps: -- name: gcr.io/$PROJECT_ID/skaffold - args: ['run', '-f=skaffold.yaml'] +- name: gcr.io/k8s-skaffold/skaffold:v0.16.0 + args: ['skaffold', '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 + machineType: 'N1_HIGHCPU_8'