• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Builds both skia-release:prod and a new fiddler using Google Container
2# Builder: https://cloud.google.com/container-builder/docs/
3#
4steps:
5  # To test locally, first uncomment the last two lines of this comment block, then submit with:
6  #
7  #    gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366
8  #
9  # Where COMMIT_SHA is updated to the last commit into Skia.
10  #
11  #- name: 'gcr.io/cloud-builders/git'
12  #  args: ['clone', 'https://github.com/google/skia.git', '.']
13
14  - name: 'debian:testing-slim'
15    args: ['mkdir', '-p', '--mode=777', '/workspace/__doxygen_staging']
16
17  - name: 'gcr.io/skia-public/doxygen:testing-slim'
18    dir: './tools/doxygen'
19    args: ['doxygen', 'ProdDoxyfile']
20    timeout: 600s
21
22  - name: 'gcr.io/cloud-builders/docker'
23    args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
24    timeout: 7200s
25
26  - name: 'gcr.io/cloud-builders/docker'
27    args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release']
28    timeout: 7200s
29
30  - name: 'gcr.io/skia-public/infra:prod'
31    dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
32    env:
33      - 'ROOT=/workspace/__fiddler_staging'
34      - 'SKIP_BUILD=1'
35    args: ['./build_fiddler_release']
36    timeout: 600s
37
38  - name: 'gcr.io/skia-public/infra:prod'
39    dir: '/home/skia/golib/src/go.skia.org/infra/debugger'
40    env:
41      - 'ROOT=/workspace/__debugger_staging'
42      - 'SKIP_BUILD=1'
43    args: ['make', 'release_ci']
44    timeout: 600s
45
46  - name: 'gcr.io/skia-public/infra:prod'
47    dir: '/home/skia/golib/src/go.skia.org/infra/debugger-assets'
48    env:
49      - 'ROOT=/workspace/__debugger_assets_staging'
50      - 'SKIP_BUILD=1'
51    args: ['make', 'release_ci']
52    timeout: 600s
53
54  - name: 'gcr.io/skia-public/infra:prod'
55    dir: '/home/skia/golib/src/go.skia.org/infra/api'
56    env:
57      - 'ROOT=/workspace/__api_staging'
58      - 'SKIP_BUILD=1'
59    args: ['make', 'release_ci']
60    timeout: 600s
61
62  # We can't (easily) run docker inside of docker, which is how we get
63  # the build artifacts out of skia-wasm-release when running locally.
64  - name: 'gcr.io/cloud-builders/docker'
65    args: ['run', '--volume', '/workspace/wasm-products:/OUT',
66           'gcr.io/$PROJECT_ID/skia-wasm-release:prod',
67           'sh', '-c', 'cp -r /tmp/* /OUT']
68    dir: 'wasm-products'
69
70  - name: 'gcr.io/cloud-builders/docker'
71    args: ['run', '--volume', '/workspace/wasm-products:/OUT',
72           '--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging',
73           '--env', 'ROOT=/workspace/__jsfiddle_staging',
74           '--env', 'SKIP_BUILD=1',
75           '--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle',
76           'gcr.io/skia-public/infra:prod',
77           'make', 'release_ci']
78    dir: 'wasm-products'
79    timeout: 600s
80
81  - name: 'gcr.io/cloud-builders/docker'
82    args: ['run', '--volume', '/workspace/wasm-products:/OUT',
83           '--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging',
84           '--env', 'ROOT=/workspace/__skottie_staging',
85           '--env', 'SKIP_BUILD=1',
86           '--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie',
87           'gcr.io/skia-public/infra:prod',
88           'make', 'release_ci']
89    dir: 'wasm-products'
90    timeout: 600s
91
92  - name: 'gcr.io/cloud-builders/docker'
93    args: ['run', '--volume', '/workspace/wasm-products:/OUT',
94           '--volume', '/workspace/__particles_staging:/workspace/__particles_staging',
95           '--env', 'ROOT=/workspace/__particles_staging',
96           '--env', 'SKIP_BUILD=1',
97           '--workdir', '/home/skia/golib/src/go.skia.org/infra/particles',
98           'gcr.io/skia-public/infra:prod',
99           'make', 'release_ci']
100    dir: 'wasm-products'
101    timeout: 600s
102
103  - name: 'gcr.io/cloud-builders/docker'
104    args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging']
105    timeout: 600s
106
107  - name: 'gcr.io/cloud-builders/docker'
108    args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging']
109    timeout: 600s
110
111  - name: 'gcr.io/cloud-builders/docker'
112    args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging']
113    timeout: 600s
114
115  - name: 'gcr.io/cloud-builders/docker'
116    args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
117    timeout: 600s
118
119  - name: 'gcr.io/cloud-builders/docker'
120    args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA', '/workspace/__debugger_assets_staging']
121    timeout: 600s
122
123  - name: 'gcr.io/cloud-builders/docker'
124    args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging']
125    timeout: 600s
126
127  - name: 'gcr.io/cloud-builders/docker'
128    args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging']
129    timeout: 600s
130images:
131  - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
132  - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
133  - 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA'
134  - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
135  - 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA'
136  - 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA'
137  - 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA'
138  - 'gcr.io/$PROJECT_ID/skia-release:prod'
139  - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod'
140timeout: 7200s
141options:
142  machineType: 'N1_HIGHCPU_32'
143