Browse Source
Merge pull request #1 from almeta-io/dev
Adding cloudbuild simple template for Google Run
pull/388/head
almeta-io
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
cloudbuild.yaml
|
|
@ -0,0 +1,7 @@ |
|
|
|
steps: |
|
|
|
- name: 'gcr.io/cloud-builders/docker' |
|
|
|
args: ['build', '--tag=gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '.'] |
|
|
|
- name: 'gcr.io/cloud-builders/docker' |
|
|
|
args: ["push", "gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}"] |
|
|
|
- name: 'gcr.io/cloud-builders/gcloud' |
|
|
|
args: ['beta', 'run', 'deploy', 'almeta-doccano', '--image', 'gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '--region', 'us-central1', '--memory', '2G', '--platform', 'managed', '--allow-unauthenticated'] |