enable push to repo in current project
This commit is contained in:
parent
9a5971cd9d
commit
b4fbe8df69
1 changed files with 10 additions and 9 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue