-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild-worker.yaml
More file actions
34 lines (34 loc) · 1 KB
/
cloudbuild-worker.yaml
File metadata and controls
34 lines (34 loc) · 1 KB
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
30
31
32
33
34
# Cloud Build config for worker (dev-worker trigger).
# _REGION and _ENVIRONMENT are set by the trigger (Terraform).
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- '-f'
- src/worker/Dockerfile
- '-t'
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/worker:$COMMIT_SHA'
- '-t'
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/worker:latest'
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/worker:$COMMIT_SHA'
- name: gcr.io/cloud-builders/docker
args:
- push
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/worker:latest'
- name: gcr.io/cloud-builders/gcloud
args:
- run
- deploy
- '${_ENVIRONMENT}-worker'
- '--image'
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/worker:$COMMIT_SHA'
- '--region'
- '${_REGION}'
timeout: 600s
options:
logging: CLOUD_LOGGING_ONLY
dynamicSubstitutions: true