skia2/docker/cloudbuild.yaml
Joe Gregorio e9326bebdf Use new build targets in continuous build of skottie and debugger.
The new targets were added here: https://skia-review.googlesource.com/c/buildbot/+/155820

Bug: skia:
Change-Id: Iac387fb033cf66dff353efb83f52a442b3441539
Reviewed-on: https://skia-review.googlesource.com/155841
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2018-09-20 15:26:18 +00:00

54 lines
2.1 KiB
YAML

# Builds both skia-release:prod and a new fiddler using Google Container
# Builder: https://cloud.google.com/container-builder/docs/
#
steps:
# To test locally, first uncomment the last two lines of this comment block, then submit with:
#
# gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366
#
# Where COMMIT_SHA is updated to the last commit into Skia.
#
# - name: 'gcr.io/cloud-builders/git'
# args: ['clone', 'https://github.com/google/skia.git', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release']
timeout: 7200s
- name: 'gcr.io/skia-public/infra:prod'
dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek'
env:
- 'ROOT=/workspace/__fiddler_staging'
- 'SKIP_BUILD=1'
args: ['./build_fiddler_release']
timeout: 600s
- 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'
args: ['make', 'release_ci']
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'
args: ['make', 'release_ci']
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
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging']
timeout: 600s
images:
- 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/skia-release:prod'
timeout: 7200s
options:
machineType: 'N1_HIGHCPU_32'