kopia lustrzana https://github.com/badgen/badgen.net
Add cloudbuild.yaml
rodzic
7967a29790
commit
8dda29ce45
|
@ -0,0 +1,12 @@
|
|||
steps:
|
||||
# build the container image
|
||||
- name: 'gcr.io/cloud-builders/docker'
|
||||
args: ['build', '-t', 'gcr.io/$PROJECT_ID/$BRANCH_NAME:$SHORT_SHA', '.']
|
||||
# push the container image to Container Registry
|
||||
- name: 'gcr.io/cloud-builders/docker'
|
||||
args: ['push', 'gcr.io/$PROJECT_ID/$BRANCH_NAME:$SHORT_SHA']
|
||||
# Deploy container image to Cloud Run
|
||||
- name: 'gcr.io/cloud-builders/gcloud'
|
||||
args: ['beta', 'run', 'deploy', 'badgen', '--image', 'gcr.io/$PROJECT_ID/$BRANCH_NAME:$SHORT_SHA', '--region', 'us-central1','--platform', 'managed', '--quiet']
|
||||
images:
|
||||
- gcr.io/$PROJECT_ID/$BRANCH_NAME:$SHORT_SHA
|
Ładowanie…
Reference in New Issue