-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-cd-tags.yaml
40 lines (39 loc) · 1.05 KB
/
cloudbuild-cd-tags.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
30
31
32
33
34
35
36
37
38
39
40
steps:
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=.env.enc
- --plaintext-file=.env
- --location=global
- --keyring=$_KEY_RING
- --key=$_KEY_NAME
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=key.enc.json
- --plaintext-file=key.json
- --location=global
- --keyring=$_KEY_RING
- --key=$_KEY_NAME
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/kutuka-bombay:$TAG_NAME', '.']
# Push the image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/kutuka-bombay:$TAG_NAME']
# Deploy image to Cloud Run
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'kutuka-bombay'
- '--image'
- 'gcr.io/$PROJECT_ID/kutuka-bombay:$TAG_NAME'
- '--region'
- 'us-east1'
- '--platform'
- 'managed'
images:
- gcr.io/$PROJECT_ID/kutuka-bombay:$TAG_NAME