forked from GoogleCloudPlatform/database-assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
20 lines (20 loc) · 924 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'us-central1-docker.pkg.dev/optimus-prime-ci/cloud-run-source-deploy/op-api:$BUILD_ID', '.']
# Push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-central1-docker.pkg.dev/optimus-prime-ci/cloud-run-source-deploy/op-api:$BUILD_ID']
# Deploy container image to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: pip
args: ['install', '-r', 'build-requirements.txt', '-r', 'requirements.txt', '--user']
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: python3
args: ['-m', 'invoke', 'pull-config']
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: python3
args: ['-m', 'invoke', 'deploy', '--tag=$BUILD_ID']
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: python3
args: ['-m', 'invoke', 'test']