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 | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 11 | #- name: 'gcr.io/cloud-builders/git' |
| 12 | # args: ['clone', 'https://github.com/google/skia.git', '.'] |
| 13 | |
| 14 | - name: 'debian:testing-slim' |
| 15 | args: ['mkdir', '-p', '--mode=777', '/workspace/__doxygen_staging'] |
| 16 | |
| 17 | - name: 'gcr.io/skia-public/doxygen:testing-slim' |
| 18 | dir: './tools/doxygen' |
| 19 | args: ['doxygen', 'ProdDoxyfile'] |
| 20 | timeout: 600s |
| 21 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 22 | - name: 'gcr.io/cloud-builders/docker' |
| 23 | 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] | 24 | timeout: 7200s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 25 | |
| 26 | - name: 'gcr.io/cloud-builders/docker' |
| 27 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release'] |
| 28 | timeout: 7200s |
| 29 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 30 | - name: 'gcr.io/skia-public/infra:prod' |
| 31 | dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek' |
| 32 | env: |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 33 | - 'ROOT=/workspace/__fiddler_staging' |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 34 | - 'SKIP_BUILD=1' |
| 35 | args: ['./build_fiddler_release'] |
Joe Gregorio | 28e2423 | 2018-07-03 13:01:19 -0400 | [diff] [blame] | 36 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 37 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 38 | - name: 'gcr.io/skia-public/infra:prod' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 39 | dir: '/home/skia/golib/src/go.skia.org/infra/debugger' |
| 40 | env: |
| 41 | - 'ROOT=/workspace/__debugger_staging' |
| 42 | - 'SKIP_BUILD=1' |
Joe Gregorio | e9326be | 2018-09-20 11:06:34 -0400 | [diff] [blame] | 43 | args: ['make', 'release_ci'] |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 44 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 45 | |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 46 | - name: 'gcr.io/skia-public/infra:prod' |
| 47 | dir: '/home/skia/golib/src/go.skia.org/infra/api' |
| 48 | env: |
| 49 | - 'ROOT=/workspace/__api_staging' |
| 50 | - 'SKIP_BUILD=1' |
| 51 | args: ['make', 'release_ci'] |
| 52 | timeout: 600s |
| 53 | |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 54 | # We can't (easily) run docker inside of docker, which is how we get |
| 55 | # the build artifacts out of skia-wasm-release when running locally. |
| 56 | - name: 'gcr.io/cloud-builders/docker' |
| 57 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 58 | 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', |
| 59 | 'sh', '-c', 'cp -r /tmp/* /OUT'] |
| 60 | dir: 'wasm-products' |
| 61 | |
| 62 | - name: 'gcr.io/cloud-builders/docker' |
| 63 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 64 | '--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging', |
| 65 | '--env', 'ROOT=/workspace/__jsfiddle_staging', |
| 66 | '--env', 'SKIP_BUILD=1', |
| 67 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle', |
| 68 | 'gcr.io/skia-public/infra:prod', |
| 69 | 'make', 'release_ci'] |
| 70 | dir: 'wasm-products' |
| 71 | timeout: 600s |
| 72 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 73 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | 22d6c27 | 2018-11-09 14:32:05 -0500 | [diff] [blame] | 74 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 75 | '--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging', |
| 76 | '--env', 'ROOT=/workspace/__skottie_staging', |
| 77 | '--env', 'SKIP_BUILD=1', |
| 78 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie', |
| 79 | 'gcr.io/skia-public/infra:prod', |
| 80 | 'make', 'release_ci'] |
| 81 | dir: 'wasm-products' |
| 82 | timeout: 600s |
| 83 | |
| 84 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 85 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 86 | '--volume', '/workspace/__particles_staging:/workspace/__particles_staging', |
| 87 | '--env', 'ROOT=/workspace/__particles_staging', |
| 88 | '--env', 'SKIP_BUILD=1', |
| 89 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/particles', |
| 90 | 'gcr.io/skia-public/infra:prod', |
| 91 | 'make', 'release_ci'] |
| 92 | dir: 'wasm-products' |
| 93 | timeout: 600s |
| 94 | |
| 95 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 96 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging'] |
| 97 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 98 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 99 | - name: 'gcr.io/cloud-builders/docker' |
| 100 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging'] |
| 101 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 102 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 103 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 104 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging'] |
| 105 | timeout: 600s |
| 106 | |
| 107 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 108 | 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] | 109 | timeout: 600s |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 110 | |
| 111 | - name: 'gcr.io/cloud-builders/docker' |
| 112 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging'] |
| 113 | timeout: 600s |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 114 | |
| 115 | - name: 'gcr.io/cloud-builders/docker' |
| 116 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging'] |
| 117 | timeout: 600s |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 118 | images: |
| 119 | - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 120 | - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 121 | - 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 122 | - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA' |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 123 | - 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA' |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 124 | - 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA' |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 125 | - 'gcr.io/$PROJECT_ID/skia-release:prod' |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 126 | - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod' |
Joe Gregorio | 3eff1e9 | 2018-07-03 14:41:23 -0400 | [diff] [blame] | 127 | timeout: 7200s |
Joe Gregorio | a83bb57 | 2018-07-31 16:04:47 -0400 | [diff] [blame] | 128 | options: |
| 129 | machineType: 'N1_HIGHCPU_32' |