fix hardcoded project id; simplify skaffold tag
This commit is contained in:
parent
5c32b135e4
commit
0fe565edfa
1 changed files with 3 additions and 3 deletions
|
@ -23,16 +23,16 @@ steps:
|
|||
args:
|
||||
[
|
||||
'build',
|
||||
'--tag', 'gcr.io/$PROJECT_ID/skaffold',
|
||||
'--tag', 'skaffold',
|
||||
'/workspace/cloud-builders-community/skaffold/.',
|
||||
]
|
||||
|
||||
# push app code to cluster
|
||||
- id: 'Deploy to staging'
|
||||
name: gcr.io/$PROJECT_ID/skaffold
|
||||
name: skaffold
|
||||
args: ['run', '-f=skaffold.yaml']
|
||||
env:
|
||||
- 'SKAFFOLD_DEFAULT_REPO=gcr.io/hipstershop-cicd'
|
||||
- 'SKAFFOLD_DEFAULT_REPO=gcr.io/$PROJECT_ID'
|
||||
- 'CLOUDSDK_COMPUTE_ZONE=us-central1-b'
|
||||
- 'CLOUDSDK_CONTAINER_CLUSTER=demo-app-staging'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue