forked from bigbluebutton/bbb-lti-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
34 lines (34 loc) · 920 Bytes
/
cloudbuild.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
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: [
'-c',
'docker pull gcr.io/$PROJECT_ID/${_URL}:latest || exit 0'
]
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'--build-arg',
'BUILD_NUMBER=${TAG_NAME}',
'-t',
'gcr.io/$PROJECT_ID/${_URL}:${TAG_NAME}.${SHORT_SHA}',
'-t',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'--cache-from',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'.']
timeout: 1200s
- name: 'gcr.io/cloud-builders/kubectl'
args: [
'set',
'image',
'deployment',
'${_APP_NAME}',
'${_IMAGE_NAME}=gcr.io/$PROJECT_ID/${_URL}:${TAG_NAME}.${SHORT_SHA}'
]
env:
- 'CLOUDSDK_COMPUTE_ZONE=${_COMPUTE_ZONE}'
- 'CLOUDSDK_CONTAINER_CLUSTER=${_CLUSTER_NAME}'
images: [
'gcr.io/$PROJECT_ID/${_URL}:${TAG_NAME}.${SHORT_SHA}',
'gcr.io/$PROJECT_ID/${_URL}:latest'
]