-
Notifications
You must be signed in to change notification settings - Fork 1
/
bos-vanilla.cb.yaml
38 lines (34 loc) · 1.02 KB
/
bos-vanilla.cb.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
### commit and push those values in !
substitutions:
_TAG: v3.0.1
_PATCHES: ""
steps:
- id: docker-build-full
name: gcr.io/cloud-builders/docker
args: [
'build',
'-t', 'gcr.io/${PROJECT_ID}/boscore-bos-full:${_TAG}',
'-t', 'gcr.io/${PROJECT_ID}/boscore-bos-full:${_TAG}-${SHORT_SHA}',
'-f', 'bos-full.dockerfile',
'--cache-from', 'gcr.io/${PROJECT_ID}/boscore-bos-full:${_TAG}',
'--build-arg', 'SRCTAG=${_TAG}',
'--build-arg', 'PATCHES=${_PATCHES}',
'.'
]
- id: docker-build-prod
name: gcr.io/cloud-builders/docker
args: [
'build',
'-t', 'gcr.io/${PROJECT_ID}/boscore-bos-prod:${_TAG}',
'-t', 'gcr.io/${PROJECT_ID}/boscore-bos-prod:${_TAG}-${SHORT_SHA}',
'--build-arg', 'BOS_FULL_TAG=${_TAG}-${SHORT_SHA}',
'-f', 'bos-prod.dockerfile',
'.'
]
options:
machineType: 'N1_HIGHCPU_32'
images:
- gcr.io/$PROJECT_ID/boscore-bos-full:${_TAG}
- gcr.io/$PROJECT_ID/boscore-bos-full:${_TAG}-${SHORT_SHA}
- gcr.io/$PROJECT_ID/boscore-bos-prod:${_TAG}-${SHORT_SHA}
timeout: 1h