-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
29 lines (24 loc) · 896 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/coachbot:latest', '.']
# Build the Docker image using the parent directory and tag it with the appropriate image name.
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/coachbot:latest']
# Push the built Docker image to the Container Registry.
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'coachbot-app'
- '--image'
- 'gcr.io/$PROJECT_ID/coachbot'
- '--region'
- 'europe-west1'
- '--allow-unauthenticated'
# Deploy the Docker image to Cloud Run as a new revision of the 'coachbot-app' service.
images:
- 'gcr.io/$PROJECT_ID/coachbot'
# Specify the image that will be pushed to the Container Registry.
options:
logging: CLOUD_LOGGING_ONLY
substitution_option: 'ALLOW_LOOSE'