blob: 448f30a30c02e5eb5f7f345a5ea3bcee880dbf5f [file] [log] [blame]
Joe Gregorio0725bdb2018-07-03 09:39:24 -04001# Builds both skia-release:prod and a new fiddler using Google Container
2# Builder: https://cloud.google.com/container-builder/docs/
3#
4steps:
Joe Gregorio6407c3d2018-07-23 11:45:23 -04005 # To test locally, first uncomment the last two lines of this comment block, then submit with:
Joe Gregorio0725bdb2018-07-03 09:39:24 -04006 #
Joe Gregoriob78becc2018-09-12 13:57:05 -04007 # gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366
Joe Gregorio0725bdb2018-07-03 09:39:24 -04008 #
9 # Where COMMIT_SHA is updated to the last commit into Skia.
10 #
Joe Gregoriodf5b7252019-03-12 14:29:49 -040011 #- 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
Joe Gregorio0725bdb2018-07-03 09:39:24 -040022 - name: 'gcr.io/cloud-builders/docker'
23 args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
Joe Gregorio28e24232018-07-03 13:01:19 -040024 timeout: 7200s
Kevin Lubick96175692018-11-05 17:28:53 -050025
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
Joe Gregorio0725bdb2018-07-03 09:39:24 -040030 - name: 'gcr.io/skia-public/infra:prod'
31 dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
32 env:
Joe Gregorio6407c3d2018-07-23 11:45:23 -040033 - 'ROOT=/workspace/__fiddler_staging'
Joe Gregorio0725bdb2018-07-03 09:39:24 -040034 - 'SKIP_BUILD=1'
35 args: ['./build_fiddler_release']
Joe Gregorio28e24232018-07-03 13:01:19 -040036 timeout: 600s
Kevin Lubick96175692018-11-05 17:28:53 -050037
Joe Gregorio6407c3d2018-07-23 11:45:23 -040038 - name: 'gcr.io/skia-public/infra:prod'
Joe Gregorio6407c3d2018-07-23 11:45:23 -040039 dir: '/home/skia/golib/src/go.skia.org/infra/debugger'
40 env:
41 - 'ROOT=/workspace/__debugger_staging'
42 - 'SKIP_BUILD=1'
Joe Gregorioe9326be2018-09-20 11:06:34 -040043 args: ['make', 'release_ci']
Joe Gregorio6407c3d2018-07-23 11:45:23 -040044 timeout: 600s
Kevin Lubick96175692018-11-05 17:28:53 -050045
Joe Gregoriodf5b7252019-03-12 14:29:49 -040046 - name: 'gcr.io/skia-public/infra:prod'
47 dir: '/home/skia/golib/src/go.skia.org/infra/api'
48 env:
49 - 'ROOT=/workspace/__api_staging'
50 - 'SKIP_BUILD=1'
51 args: ['make', 'release_ci']
52 timeout: 600s
53
Kevin Lubickdf3a6ee2018-11-08 13:22:14 -050054 # We can't (easily) run docker inside of docker, which is how we get
55 # the build artifacts out of skia-wasm-release when running locally.
56 - name: 'gcr.io/cloud-builders/docker'
57 args: ['run', '--volume', '/workspace/wasm-products:/OUT',
58 'gcr.io/$PROJECT_ID/skia-wasm-release:prod',
59 'sh', '-c', 'cp -r /tmp/* /OUT']
60 dir: 'wasm-products'
61
62 - name: 'gcr.io/cloud-builders/docker'
63 args: ['run', '--volume', '/workspace/wasm-products:/OUT',
64 '--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging',
65 '--env', 'ROOT=/workspace/__jsfiddle_staging',
66 '--env', 'SKIP_BUILD=1',
67 '--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle',
68 'gcr.io/skia-public/infra:prod',
69 'make', 'release_ci']
70 dir: 'wasm-products'
71 timeout: 600s
72
Joe Gregorio0725bdb2018-07-03 09:39:24 -040073 - name: 'gcr.io/cloud-builders/docker'
Kevin Lubick22d6c272018-11-09 14:32:05 -050074 args: ['run', '--volume', '/workspace/wasm-products:/OUT',
75 '--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging',
76 '--env', 'ROOT=/workspace/__skottie_staging',
77 '--env', 'SKIP_BUILD=1',
78 '--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie',
79 'gcr.io/skia-public/infra:prod',
80 'make', 'release_ci']
81 dir: 'wasm-products'
82 timeout: 600s
83
84 - name: 'gcr.io/cloud-builders/docker'
Kevin Lubickb6b31882019-03-12 11:09:12 -040085 args: ['run', '--volume', '/workspace/wasm-products:/OUT',
86 '--volume', '/workspace/__particles_staging:/workspace/__particles_staging',
87 '--env', 'ROOT=/workspace/__particles_staging',
88 '--env', 'SKIP_BUILD=1',
89 '--workdir', '/home/skia/golib/src/go.skia.org/infra/particles',
90 'gcr.io/skia-public/infra:prod',
91 'make', 'release_ci']
92 dir: 'wasm-products'
93 timeout: 600s
94
95 - name: 'gcr.io/cloud-builders/docker'
Joe Gregorio6407c3d2018-07-23 11:45:23 -040096 args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging']
97 timeout: 600s
Kevin Lubick96175692018-11-05 17:28:53 -050098
Joe Gregorio6407c3d2018-07-23 11:45:23 -040099 - name: 'gcr.io/cloud-builders/docker'
100 args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging']
101 timeout: 600s
Kevin Lubick96175692018-11-05 17:28:53 -0500102
Joe Gregorio6407c3d2018-07-23 11:45:23 -0400103 - name: 'gcr.io/cloud-builders/docker'
Kevin Lubickb6b31882019-03-12 11:09:12 -0400104 args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging']
105 timeout: 600s
106
107 - name: 'gcr.io/cloud-builders/docker'
Joe Gregorio6407c3d2018-07-23 11:45:23 -0400108 args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
Joe Gregorio28e24232018-07-03 13:01:19 -0400109 timeout: 600s
Kevin Lubickdf3a6ee2018-11-08 13:22:14 -0500110
111 - name: 'gcr.io/cloud-builders/docker'
112 args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging']
113 timeout: 600s
Joe Gregoriodf5b7252019-03-12 14:29:49 -0400114
115 - name: 'gcr.io/cloud-builders/docker'
116 args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging']
117 timeout: 600s
Joe Gregorio0725bdb2018-07-03 09:39:24 -0400118images:
119 - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
Joe Gregorio6407c3d2018-07-23 11:45:23 -0400120 - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
Kevin Lubickb6b31882019-03-12 11:09:12 -0400121 - 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA'
Joe Gregorio6407c3d2018-07-23 11:45:23 -0400122 - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
Kevin Lubickdf3a6ee2018-11-08 13:22:14 -0500123 - 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA'
Joe Gregoriodf5b7252019-03-12 14:29:49 -0400124 - 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA'
Joe Gregorio0725bdb2018-07-03 09:39:24 -0400125 - 'gcr.io/$PROJECT_ID/skia-release:prod'
Kevin Lubick96175692018-11-05 17:28:53 -0500126 - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod'
Joe Gregorio3eff1e92018-07-03 14:41:23 -0400127timeout: 7200s
Joe Gregorioa83bb572018-07-31 16:04:47 -0400128options:
129 machineType: 'N1_HIGHCPU_32'