From b4fbe8df694203c6581d80973e5962493d3be098 Mon Sep 17 00:00:00 2001 From: Dave Stanke Date: Thu, 29 Nov 2018 12:40:55 -0500 Subject: [PATCH] enable push to repo in current project --- cloudbuild.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 39b933d..bb7b227 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -4,15 +4,15 @@ # - Cloud Build service account must have roles: "Kubernetes Engine Developer", "Storage Object Creator", \ # "Storage Object" -steps: -# modify skaffold config to deploy to cluster in *current* GCP project -- id: 'Patch Skaffold config' - name: ubuntu - args: - - 'sed' - - '-i' - - 's/microservices-demo-app/$PROJECT_ID/g' - - 'skaffold.yaml' +# steps: +# # modify skaffold config to deploy to cluster in *current* GCP project +# - id: 'Patch Skaffold config' +# name: ubuntu +# args: +# - 'sed' +# - '-i' +# - 's/microservices-demo-app/$PROJECT_ID/g' +# - 'skaffold.yaml' # authenticate to GKE cluster - id: 'Get GKE credentials' @@ -39,6 +39,7 @@ steps: name: gcr.io/$PROJECT_ID/skaffold args: ['run', '-f=skaffold.yaml'] env: + - 'SKAFFOLD_DEFAULT_REPO=gcr.io/hipstershop-cicd' - 'CLOUDSDK_COMPUTE_ZONE=us-central1-b' - 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging'