forked from GoogleCloudPlatform/getting-started-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgkebuild.yaml
More file actions
19 lines (19 loc) · 751 Bytes
/
gkebuild.yaml
File metadata and controls
19 lines (19 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/poc-ci-cd/bookshelf:$REVISION_ID','optional-kubernetes-engine/']
- name: 'gcr.io/cloud-builders/docker'
args: ['push','gcr.io/poc-ci-cd/bookshelf:$REVISION_ID']
- name: 'gcr.io/cloud-builders/kubectl'
args:
- 'set'
- 'image'
- 'deployment/bookshelf-frontend'
- 'bookshelf-app=gcr.io/poc-ci-cd/bookshelf:$REVISION_ID'
env:
- 'CLOUDSDK_COMPUTE_ZONE=us-east1-b'
- 'CLOUDSDK_CONTAINER_CLUSTER=bookshelf'
- name: 'gcr.io/cloud-builders/kubectl'
args: ['set', 'image','deployment/bookshelf-worker','bookshelf-app=gcr.io/poc-ci-cd/bookshelf:$REVISION_ID']
env:
- 'CLOUDSDK_COMPUTE_ZONE=us-east1-b'
- 'CLOUDSDK_CONTAINER_CLUSTER=bookshelf'