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:
|
2018-07-23 15:45:23 +00:00
|
|
|
# To test locally, first uncomment the last two lines of this comment block, then submit with:
|
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.
|
|
|
|
#
|
2018-07-23 15:45:23 +00:00
|
|
|
# - name: 'gcr.io/cloud-builders/git'
|
|
|
|
# args: ['clone', 'https://github.com/google/skia.git', '.']
|
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-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-07-23 15:45:23 +00:00
|
|
|
- name: 'gcr.io/skia-public/infra:prod'
|
|
|
|
dir: '/home/skia/golib/src/go.skia.org/infra/skottie'
|
|
|
|
env:
|
|
|
|
- 'ROOT=/workspace/__skottie_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
|
|
|
|
- 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
|
|
|
|
- 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
|
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-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'
|
|
|
|
- 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
|
2018-07-03 13:39:24 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/skia-release:prod'
|
2018-07-03 18:41:23 +00:00
|
|
|
timeout: 7200s
|
2018-07-31 20:04:47 +00:00
|
|
|
options:
|
|
|
|
machineType: 'N1_HIGHCPU_32'
|