blob: 8f5554b9a43ef266f3ce0841f8ae26c27d7d3397 [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 Gregorio6407c3d2018-07-23 11:45:23 -040011 # - name: 'gcr.io/cloud-builders/git'
12 # args: ['clone', 'https://github.com/google/skia.git', '.']
Joe Gregorio0725bdb2018-07-03 09:39:24 -040013 - name: 'gcr.io/cloud-builders/docker'
14 args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
Joe Gregorio28e24232018-07-03 13:01:19 -040015 timeout: 7200s
Joe Gregorio0725bdb2018-07-03 09:39:24 -040016 - name: 'gcr.io/skia-public/infra:prod'
17 dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
18 env:
Joe Gregorio6407c3d2018-07-23 11:45:23 -040019 - 'ROOT=/workspace/__fiddler_staging'
Joe Gregorio0725bdb2018-07-03 09:39:24 -040020 - 'SKIP_BUILD=1'
21 args: ['./build_fiddler_release']
Joe Gregorio28e24232018-07-03 13:01:19 -040022 timeout: 600s
Joe Gregorio6407c3d2018-07-23 11:45:23 -040023 - name: 'gcr.io/skia-public/infra:prod'
24 dir: '/home/skia/golib/src/go.skia.org/infra/skottie'
25 env:
26 - 'ROOT=/workspace/__skottie_staging'
27 - 'SKIP_BUILD=1'
Joe Gregorioe9326be2018-09-20 11:06:34 -040028 args: ['make', 'release_ci']
Joe Gregorio6407c3d2018-07-23 11:45:23 -040029 timeout: 600s
30 - name: 'gcr.io/skia-public/infra:prod'
31 dir: '/home/skia/golib/src/go.skia.org/infra/debugger'
32 env:
33 - 'ROOT=/workspace/__debugger_staging'
34 - 'SKIP_BUILD=1'
Joe Gregorioe9326be2018-09-20 11:06:34 -040035 args: ['make', 'release_ci']
Joe Gregorio6407c3d2018-07-23 11:45:23 -040036 timeout: 600s
Joe Gregorio0725bdb2018-07-03 09:39:24 -040037 - name: 'gcr.io/cloud-builders/docker'
Joe Gregorio6407c3d2018-07-23 11:45:23 -040038 args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging']
39 timeout: 600s
40 - name: 'gcr.io/cloud-builders/docker'
41 args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging']
42 timeout: 600s
43 - name: 'gcr.io/cloud-builders/docker'
44 args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
Joe Gregorio28e24232018-07-03 13:01:19 -040045 timeout: 600s
Joe Gregorio0725bdb2018-07-03 09:39:24 -040046images:
47 - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
Joe Gregorio6407c3d2018-07-23 11:45:23 -040048 - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
49 - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
Joe Gregorio0725bdb2018-07-03 09:39:24 -040050 - 'gcr.io/$PROJECT_ID/skia-release:prod'
Joe Gregorio3eff1e92018-07-03 14:41:23 -040051timeout: 7200s
Joe Gregorioa83bb572018-07-31 16:04:47 -040052options:
53 machineType: 'N1_HIGHCPU_32'