2018-07-03 13:39:24 +00:00
|
|
|
# Builds both skia-release:prod and a new fiddler using Google Container
|
|
|
|
# Builder: https://cloud.google.com/container-builder/docs/
|
|
|
|
#
|
|
|
|
steps:
|
2019-10-14 18:47:11 +00:00
|
|
|
# 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:
|
2018-07-03 13:39:24 +00:00
|
|
|
#
|
2018-09-12 17:57:05 +00:00
|
|
|
# gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366
|
2018-07-03 13:39:24 +00:00
|
|
|
#
|
|
|
|
# Where COMMIT_SHA is updated to the last commit into Skia.
|
|
|
|
#
|
2019-10-08 17:47:22 +00:00
|
|
|
#- name: 'gcr.io/cloud-builders/git'
|
|
|
|
# args: ['clone', 'https://github.com/google/skia.git', '.']
|
2019-10-14 18:47:11 +00:00
|
|
|
#
|
|
|
|
#- 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']
|
2019-03-12 18:29:49 +00:00
|
|
|
|
|
|
|
- name: 'debian:testing-slim'
|
2019-10-14 18:47:11 +00:00
|
|
|
args: ['mkdir', '-p', '--mode=0777', './__doxygen_staging']
|
2019-03-12 18:29:49 +00:00
|
|
|
|
2019-09-06 05:21:05 +00:00
|
|
|
- name: 'debian:testing-slim'
|
2019-10-14 18:47:11 +00:00
|
|
|
args: ['ls', '-al', '/']
|
2019-09-06 05:21:05 +00:00
|
|
|
|
2019-03-12 18:29:49 +00:00
|
|
|
- name: 'gcr.io/skia-public/doxygen:testing-slim'
|
|
|
|
dir: './tools/doxygen'
|
|
|
|
args: ['doxygen', 'ProdDoxyfile']
|
|
|
|
timeout: 600s
|
|
|
|
|
2018-07-03 13:39:24 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
|
2018-07-03 17:01:19 +00:00
|
|
|
timeout: 7200s
|
2018-11-05 22:28:53 +00:00
|
|
|
|
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release']
|
|
|
|
timeout: 7200s
|
|
|
|
|
2018-07-03 13:39:24 +00:00
|
|
|
- name: 'gcr.io/skia-public/infra:prod'
|
|
|
|
dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
|
|
|
|
env:
|
2018-07-23 15:45:23 +00:00
|
|
|
- 'ROOT=/workspace/__fiddler_staging'
|
2018-07-03 13:39:24 +00:00
|
|
|
- 'SKIP_BUILD=1'
|
|
|
|
args: ['./build_fiddler_release']
|
2018-07-03 17:01:19 +00:00
|
|
|
timeout: 600s
|
2018-11-05 22:28:53 +00:00
|
|
|
|
2018-07-23 15:45:23 +00:00
|
|
|
- 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'
|
2018-09-20 15:06:34 +00:00
|
|
|
args: ['make', 'release_ci']
|
2018-07-23 15:45:23 +00:00
|
|
|
timeout: 600s
|
2018-11-05 22:28:53 +00:00
|
|
|
|
2019-06-19 18:58:07 +00:00
|
|
|
- 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
|
|
|
|
|
2019-03-12 18:29:49 +00:00
|
|
|
- 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
|
|
|
|
|
2018-11-08 18:22:14 +00:00
|
|
|
# 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']
|
2018-11-09 19:32:05 +00:00
|
|
|
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']
|
2018-11-08 18:22:14 +00:00
|
|
|
dir: 'wasm-products'
|
|
|
|
timeout: 600s
|
|
|
|
|
2019-03-12 15:09:12 +00:00
|
|
|
- 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
|
|
|
|
|
2018-07-23 15:45:23 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging']
|
|
|
|
timeout: 600s
|
2018-11-05 22:28:53 +00:00
|
|
|
|
2018-07-23 15:45:23 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging']
|
|
|
|
timeout: 600s
|
2018-11-05 22:28:53 +00:00
|
|
|
|
2019-03-12 15:09:12 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging']
|
|
|
|
timeout: 600s
|
|
|
|
|
2018-07-03 13:39:24 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
2018-07-23 15:45:23 +00:00
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
|
2018-07-03 17:01:19 +00:00
|
|
|
timeout: 600s
|
2018-11-08 18:22:14 +00:00
|
|
|
|
2019-06-19 18:58:07 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA', '/workspace/__debugger_assets_staging']
|
|
|
|
timeout: 600s
|
|
|
|
|
2018-11-08 18:22:14 +00:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging']
|
|
|
|
timeout: 600s
|
2019-03-12 18:29:49 +00:00
|
|
|
|
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging']
|
|
|
|
timeout: 600s
|
2018-07-03 13:39:24 +00:00
|
|
|
images:
|
|
|
|
- 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
|
2018-07-23 15:45:23 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
|
2019-03-12 15:09:12 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA'
|
2018-07-23 15:45:23 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
|
2019-06-19 18:58:07 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA'
|
2018-11-08 18:22:14 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA'
|
2019-03-12 18:29:49 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA'
|
2018-07-03 13:39:24 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/skia-release:prod'
|
2018-11-05 22:28:53 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/skia-wasm-release:prod'
|
2018-07-03 18:41:23 +00:00
|
|
|
timeout: 7200s
|
2018-07-31 20:04:47 +00:00
|
|
|
options:
|
2019-10-14 18:47:11 +00:00
|
|
|
machineType: 'N1_HIGHCPU_32'
|