Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 1 | # Builds both skia-release:prod and a new fiddler using Google Container |
| 2 | # Builder: https://cloud.google.com/container-builder/docs/ |
| 3 | # |
| 4 | steps: |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 5 | # To test locally, first uncomment the last two lines of this comment block, then submit with: |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 6 | # |
Joe Gregorio | b78becc | 2018-09-12 13:57:05 -0400 | [diff] [blame] | 7 | # gcloud builds submit --config cloudbuild.yaml --no-source --substitutions=COMMIT_SHA=b2acf0a93927a57cc1fa9323839e788379ae3366 |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 8 | # |
| 9 | # Where COMMIT_SHA is updated to the last commit into Skia. |
| 10 | # |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 11 | # - name: 'gcr.io/cloud-builders/git' |
| 12 | # args: ['clone', 'https://github.com/google/skia.git', '.'] |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 13 | - name: 'gcr.io/cloud-builders/docker' |
| 14 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release'] |
Joe Gregorio | 28e2423 | 2018-07-03 13:01:19 -0400 | [diff] [blame] | 15 | timeout: 7200s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 16 | |
| 17 | - name: 'gcr.io/cloud-builders/docker' |
| 18 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release'] |
| 19 | timeout: 7200s |
| 20 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 21 | - name: 'gcr.io/skia-public/infra:prod' |
| 22 | dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek' |
| 23 | env: |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 24 | - 'ROOT=/workspace/__fiddler_staging' |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 25 | - 'SKIP_BUILD=1' |
| 26 | args: ['./build_fiddler_release'] |
Joe Gregorio | 28e2423 | 2018-07-03 13:01:19 -0400 | [diff] [blame] | 27 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 28 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 29 | - name: 'gcr.io/skia-public/infra:prod' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 30 | dir: '/home/skia/golib/src/go.skia.org/infra/debugger' |
| 31 | env: |
| 32 | - 'ROOT=/workspace/__debugger_staging' |
| 33 | - 'SKIP_BUILD=1' |
Joe Gregorio | e9326be | 2018-09-20 11:06:34 -0400 | [diff] [blame] | 34 | args: ['make', 'release_ci'] |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 35 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 36 | |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 37 | # We can't (easily) run docker inside of docker, which is how we get |
| 38 | # the build artifacts out of skia-wasm-release when running locally. |
| 39 | - name: 'gcr.io/cloud-builders/docker' |
| 40 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 41 | 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', |
| 42 | 'sh', '-c', 'cp -r /tmp/* /OUT'] |
| 43 | dir: 'wasm-products' |
| 44 | |
| 45 | - name: 'gcr.io/cloud-builders/docker' |
| 46 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 47 | '--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging', |
| 48 | '--env', 'ROOT=/workspace/__jsfiddle_staging', |
| 49 | '--env', 'SKIP_BUILD=1', |
| 50 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle', |
| 51 | 'gcr.io/skia-public/infra:prod', |
| 52 | 'make', 'release_ci'] |
| 53 | dir: 'wasm-products' |
| 54 | timeout: 600s |
| 55 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 56 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | 22d6c27 | 2018-11-09 14:32:05 -0500 | [diff] [blame] | 57 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 58 | '--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging', |
| 59 | '--env', 'ROOT=/workspace/__skottie_staging', |
| 60 | '--env', 'SKIP_BUILD=1', |
| 61 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie', |
| 62 | 'gcr.io/skia-public/infra:prod', |
| 63 | 'make', 'release_ci'] |
| 64 | dir: 'wasm-products' |
| 65 | timeout: 600s |
| 66 | |
| 67 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 68 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging'] |
| 69 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 70 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 71 | - name: 'gcr.io/cloud-builders/docker' |
| 72 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging'] |
| 73 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 74 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 75 | - name: 'gcr.io/cloud-builders/docker' |
| 76 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging'] |
Joe Gregorio | 28e2423 | 2018-07-03 13:01:19 -0400 | [diff] [blame] | 77 | timeout: 600s |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 78 | |
| 79 | - name: 'gcr.io/cloud-builders/docker' |
| 80 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging'] |
| 81 | timeout: 600s |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 82 | images: |
| 83 | - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 84 | - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA' |
| 85 | - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA' |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 86 | - 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA' |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 87 | - 'gcr.io/$PROJECT_ID/skia-release:prod' |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 88 | - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod' |
Joe Gregorio | 3eff1e9 | 2018-07-03 14:41:23 -0400 | [diff] [blame] | 89 | timeout: 7200s |
Joe Gregorio | a83bb57 | 2018-07-31 16:04:47 -0400 | [diff] [blame] | 90 | options: |
| 91 | machineType: 'N1_HIGHCPU_32' |