-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
17 lines (17 loc) · 920 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
steps:
# Build the Docker image and tag it with the commit sha.
- name: 'northamerica-northeast1-docker.pkg.dev/cloud-builders/docker'
args: ['build', '-t', 'northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/getting-rusty/rusty:$COMMIT_SHA', '.']
# Push the Docker image to the Google Container Registry.
- name: 'northamerica-northeast1-docker.pkg.dev/cloud-builders/docker'
args: ['push', 'northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/getting-rusty/rusty:$COMMIT_SHA']
# Deploy the container image to Cloud Run.
- name: 'northamerica-northeast1-docker.pkg.dev/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'rusty'
- '--image=northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/getting-rusty/rusty:$COMMIT_SHA'
- '--platform=managed'
# Set other flags as needed, such as the region, memory allocation, etc.
- '--region=northamerica-northeast1'