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", \
|
# - Cloud Build service account must have roles: "Kubernetes Engine Developer", "Storage Object Creator", \
|
||||||
# "Storage Object"
|
# "Storage Object"
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
# modify skaffold config to deploy to cluster in *current* GCP project
|
# # modify skaffold config to deploy to cluster in *current* GCP project
|
||||||
- id: 'Patch Skaffold config'
|
# - id: 'Patch Skaffold config'
|
||||||
name: ubuntu
|
# name: ubuntu
|
||||||
args:
|
# args:
|
||||||
- 'sed'
|
# - 'sed'
|
||||||
- '-i'
|
# - '-i'
|
||||||
- 's/microservices-demo-app/$PROJECT_ID/g'
|
# - 's/microservices-demo-app/$PROJECT_ID/g'
|
||||||
- 'skaffold.yaml'
|
# - 'skaffold.yaml'
|
||||||
|
|
||||||
# authenticate to GKE cluster
|
# authenticate to GKE cluster
|
||||||
- id: 'Get GKE credentials'
|
- id: 'Get GKE credentials'
|
||||||
|
@ -39,6 +39,7 @@ steps:
|
||||||
name: gcr.io/$PROJECT_ID/skaffold
|
name: gcr.io/$PROJECT_ID/skaffold
|
||||||
args: ['run', '-f=skaffold.yaml']
|
args: ['run', '-f=skaffold.yaml']
|
||||||
env:
|
env:
|
||||||
|
- 'SKAFFOLD_DEFAULT_REPO=gcr.io/hipstershop-cicd'
|
||||||
- 'CLOUDSDK_COMPUTE_ZONE=us-central1-b'
|
- 'CLOUDSDK_COMPUTE_ZONE=us-central1-b'
|
||||||
- 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging'
|
- 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue