enable push to repo in current project

This commit is contained in:
Dave Stanke 2018-11-29 12:40:55 -05:00
parent 9a5971cd9d
commit b4fbe8df69

View file

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