-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
155 lines (135 loc) · 5.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Builds both skia-release:prod and a new fiddler using Google Container
# Builder: https://cloud.google.com/container-builder/docs/
#
steps:
# To test locally, first uncomment the last 8 lines of this comment block,
# update the /refs/changes/... value to reflect the CL you are testing and
# then run:
#
# gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366
#
# Where COMMIT_SHA is updated to the last commit into Skia.
#
#- name: 'gcr.io/cloud-builders/git'
# args: ['clone', 'https://github.com/google/skia.git', '.']
#
#- name: 'gcr.io/cloud-builders/git'
# args: ['fetch', 'https://skia.googlesource.com/skia','refs/changes/56/248556/18']
#
#- name: 'gcr.io/cloud-builders/git'
# args: ['checkout', 'FETCH_HEAD']
- name: 'debian:testing-slim'
args: ['mkdir', '-p', '--mode=0777', './__doxygen_staging']
- name: 'debian:testing-slim'
args: ['ls', '-al', '/']
- name: 'gcr.io/skia-public/doxygen:testing-slim'
dir: './tools/doxygen'
env:
- 'OUTPUT_DIRECTORY=/workspace/__doxygen_staging'
args: ['doxygen', 'ProdDoxyfile']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
timeout: 7200s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release']
timeout: 7200s
- name: 'gcr.io/skia-public/infra:prod'
dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
env:
- 'ROOT=/workspace/__fiddler_staging'
- 'SKIP_BUILD=1'
args: ['./build_fiddler_release']
timeout: 600s
- name: 'gcr.io/skia-public/infra:prod'
dir: '/home/skia/golib/src/go.skia.org/infra/debugger'
env:
- 'ROOT=/workspace/__debugger_staging'
- 'SKIP_BUILD=1'
args: ['make', 'release_ci']
timeout: 600s
- name: 'gcr.io/skia-public/infra:prod'
dir: '/home/skia/golib/src/go.skia.org/infra/debugger-assets'
env:
- 'ROOT=/workspace/__debugger_assets_staging'
- 'SKIP_BUILD=1'
args: ['make', 'release_ci']
timeout: 600s
- name: 'gcr.io/skia-public/infra:prod'
dir: '/home/skia/golib/src/go.skia.org/infra/api'
env:
- 'ROOT=/workspace/__api_staging'
- 'SKIP_BUILD=1'
args: ['make', 'release_ci']
timeout: 600s
# We can't (easily) run docker inside of docker, which is how we get
# the build artifacts out of skia-wasm-release when running locally.
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--volume', '/workspace/wasm-products:/OUT',
'gcr.io/$PROJECT_ID/skia-wasm-release:prod',
'sh', '-c', 'cp -r /tmp/* /OUT']
dir: 'wasm-products'
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--volume', '/workspace/wasm-products:/OUT',
'--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging',
'--env', 'ROOT=/workspace/__jsfiddle_staging',
'--env', 'SKIP_BUILD=1',
'--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle',
'gcr.io/skia-public/infra:prod',
'make', 'release_ci']
dir: 'wasm-products'
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--volume', '/workspace/wasm-products:/OUT',
'--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging',
'--env', 'ROOT=/workspace/__skottie_staging',
'--env', 'SKIP_BUILD=1',
'--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie',
'gcr.io/skia-public/infra:prod',
'make', 'release_ci']
dir: 'wasm-products'
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--volume', '/workspace/wasm-products:/OUT',
'--volume', '/workspace/__particles_staging:/workspace/__particles_staging',
'--env', 'ROOT=/workspace/__particles_staging',
'--env', 'SKIP_BUILD=1',
'--workdir', '/home/skia/golib/src/go.skia.org/infra/particles',
'gcr.io/skia-public/infra:prod',
'make', 'release_ci']
dir: 'wasm-products'
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA', '/workspace/__debugger_assets_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging']
timeout: 600s
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging']
timeout: 600s
images:
- 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/skia-release:prod'
- 'gcr.io/$PROJECT_ID/skia-wasm-release:prod'
timeout: 7200s
options:
machineType: 'N1_HIGHCPU_32'