Add cloudbuild.yaml

pull/312/head
amio 2019-09-01 20:10:34 +08:00
rodzic 7967a29790
commit 8dda29ce45
1 zmienionych plików z 12 dodań i 0 usunięć

12
cloudbuild.yaml 100644
Wyświetl plik

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