-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcloudbuild.yaml
61 lines (53 loc) · 2.03 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Default total build time is 10m, which isn't always enough.
timeout: 1800s
options:
# Allow images to build more quickly.
machineType: 'N1_HIGHCPU_8'
############################################################################
# Create project-specific customized builder images.
############################################################################
steps:
# Build golang-cbif container. Useful golang builds and tests.
- name: gcr.io/cloud-builders/docker
args: [
'build',
'--tag=gcr.io/$PROJECT_ID/golang-cbif:1.20',
'--tag=us-central1-docker.pkg.dev/$PROJECT_ID/build-images/golang-cbif:1.20',
'--file=Dockerfile.golang', '.'
]
# Build gcloud-jsonnet-cbif image combining: gcloud, jsonnet, and cbif.
- name: gcr.io/cloud-builders/docker
args: [
'build',
'--tag=gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.1',
'--tag=us-central1-docker.pkg.dev/$PROJECT_ID/build-images/gcloud-jsonnet-cbif:1.1',
'--file=Dockerfile.jsonnet', '.'
]
waitFor: ['-']
# Build epoxy-images image
- name: gcr.io/cloud-builders/docker
args: [
'build',
'--tag=gcr.io/$PROJECT_ID/epoxy-images:1.2',
'--tag=us-central1-docker.pkg.dev/$PROJECT_ID/build-images/epoxy-images:1.2',
'--file=Dockerfile.epoxy-images', '.'
]
waitFor: ['-']
# Build siteinfo-cbif image. Used by siteinto repository builds.
- name: gcr.io/cloud-builders/docker
args: [
'build',
'--tag=gcr.io/$PROJECT_ID/siteinfo-cbif:1.1',
'--tag=us-central1-docker.pkg.dev/$PROJECT_ID/build-images/siteinfo-cbif:1.1',
'--file=Dockerfile.siteinfo', '.'
]
waitFor: ['-']
images:
- 'gcr.io/$PROJECT_ID/golang-cbif:1.20'
- 'gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.1'
- 'gcr.io/$PROJECT_ID/epoxy-images:1.2'
- 'gcr.io/$PROJECT_ID/siteinfo-cbif:1.1'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/build-images/golang-cbif:1.20'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/build-images/gcloud-jsonnet-cbif:1.1'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/build-images/epoxy-images:1.2'
- 'us-central1-docker.pkg.dev/$PROJECT_ID/build-images/siteinfo-cbif:1.1'