-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
45 lines (41 loc) · 1.33 KB
/
Copy pathcloudbuild.yaml
File metadata and controls
45 lines (41 loc) · 1.33 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
35
36
37
38
39
40
41
42
43
44
45
steps:
# Build the multi-service Docker image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/raajje-repo/adhu-portal:$BUILD_ID', '.']
# Push the container image to Artifact Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-central1-docker.pkg.dev/$PROJECT_ID/raajje-repo/adhu-portal:$BUILD_ID']
# Deploy API / Platform to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'deploy'
- 'adhu-portal'
- '--image'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/raajje-repo/adhu-portal:$BUILD_ID'
- '--region'
- 'us-central1'
- '--platform'
- 'managed'
- '--allow-unauthenticated'
- '--port'
- '8080'
- '--set-env-vars'
- 'ENVIRONMENT=production'
# Deploy Aggregator (Worker) to Cloud Run or Cloud Run Jobs
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'jobs'
- 'deploy'
- 'adhu-aggregator'
- '--image'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/raajje-repo/adhu-portal:$BUILD_ID'
- '--region'
- 'us-central1'
- '--command'
- './aggregator_bin'
images:
- 'us-central1-docker.pkg.dev/$PROJECT_ID/raajje-repo/adhu-portal:$BUILD_ID'