-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
26 lines (23 loc) · 776 Bytes
/
cloudbuild.yaml
File metadata and controls
26 lines (23 loc) · 776 Bytes
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
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/katanasa-app:$COMMIT_SHA', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/katanasa-app:$COMMIT_SHA']
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'katanasa-app'
- '--image=gcr.io/$PROJECT_ID/katanasa-app:$COMMIT_SHA'
- '--set-env-vars=ENVIRONMENT=Live,DATABASE=xxxx,SAFARICOM_IP_ADDRESS_VALIDATION=true'
- '--region=us-central1'
- '--project=$PROJECT_ID'
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'services'
- 'update-traffic'
- 'katanasa-app'
- '--to-latest'
- '--region=us-central1'
- '--project=$PROJECT_ID'