diff options
author | Joe Gregorio <jcgregorio@google.com> | 2018-07-03 09:39:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-03 14:43:43 +0000 |
commit | 0725bdb787e3400945d4fac257966aee4459b941 (patch) | |
tree | 23fbef66399b8823ecb31e08fec9aef188e2e43e | |
parent | 7484d206685fedf03ec43d92b1caa9edbdefd535 (diff) |
Add cloudbuild.yaml file for continous builds of fiddler and skia-release.
Bug: skia:
Change-Id: I713fea23ce88af4dd2a1f28082274535119defee
Reviewed-on: https://skia-review.googlesource.com/139107
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
-rw-r--r-- | docker/cloudbuild.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/cloudbuild.yaml b/docker/cloudbuild.yaml new file mode 100644 index 0000000000..47eb232724 --- /dev/null +++ b/docker/cloudbuild.yaml @@ -0,0 +1,25 @@ +# 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, then submit with: + # + # gcloud container builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=e01683e81de03caf5a2f9a23a5ae9f644908b56f + # + # 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'] + - name: 'gcr.io/skia-public/infra:prod' + dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek' + env: + - 'ROOT=/workspace/__staging' + - 'SKIP_BUILD=1' + args: ['./build_fiddler_release'] + - name: 'gcr.io/cloud-builders/docker' + args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__staging'] +images: + - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA' + - 'gcr.io/$PROJECT_ID/skia-release:prod' |