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' |
Joe Gregorio | 024a912 | 2019-06-19 14:58:07 -0400 | [diff] [blame] | 47 | dir: '/home/skia/golib/src/go.skia.org/infra/debugger-assets' |
| 48 | env: |
| 49 | - 'ROOT=/workspace/__debugger_assets_staging' |
| 50 | - 'SKIP_BUILD=1' |
| 51 | args: ['make', 'release_ci'] |
| 52 | timeout: 600s |
| 53 | |
| 54 | - name: 'gcr.io/skia-public/infra:prod' |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 55 | dir: '/home/skia/golib/src/go.skia.org/infra/api' |
| 56 | env: |
| 57 | - 'ROOT=/workspace/__api_staging' |
| 58 | - 'SKIP_BUILD=1' |
| 59 | args: ['make', 'release_ci'] |
| 60 | timeout: 600s |
| 61 | |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 62 | # We can't (easily) run docker inside of docker, which is how we get |
| 63 | # the build artifacts out of skia-wasm-release when running locally. |
| 64 | - name: 'gcr.io/cloud-builders/docker' |
| 65 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 66 | 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', |
| 67 | 'sh', '-c', 'cp -r /tmp/* /OUT'] |
| 68 | dir: 'wasm-products' |
| 69 | |
| 70 | - name: 'gcr.io/cloud-builders/docker' |
| 71 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 72 | '--volume', '/workspace/__jsfiddle_staging:/workspace/__jsfiddle_staging', |
| 73 | '--env', 'ROOT=/workspace/__jsfiddle_staging', |
| 74 | '--env', 'SKIP_BUILD=1', |
| 75 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/jsfiddle', |
| 76 | 'gcr.io/skia-public/infra:prod', |
| 77 | 'make', 'release_ci'] |
| 78 | dir: 'wasm-products' |
| 79 | timeout: 600s |
| 80 | |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 81 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | 22d6c27 | 2018-11-09 14:32:05 -0500 | [diff] [blame] | 82 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 83 | '--volume', '/workspace/__skottie_staging:/workspace/__skottie_staging', |
| 84 | '--env', 'ROOT=/workspace/__skottie_staging', |
| 85 | '--env', 'SKIP_BUILD=1', |
| 86 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/skottie', |
| 87 | 'gcr.io/skia-public/infra:prod', |
| 88 | 'make', 'release_ci'] |
| 89 | dir: 'wasm-products' |
| 90 | timeout: 600s |
| 91 | |
| 92 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 93 | args: ['run', '--volume', '/workspace/wasm-products:/OUT', |
| 94 | '--volume', '/workspace/__particles_staging:/workspace/__particles_staging', |
| 95 | '--env', 'ROOT=/workspace/__particles_staging', |
| 96 | '--env', 'SKIP_BUILD=1', |
| 97 | '--workdir', '/home/skia/golib/src/go.skia.org/infra/particles', |
| 98 | 'gcr.io/skia-public/infra:prod', |
| 99 | 'make', 'release_ci'] |
| 100 | dir: 'wasm-products' |
| 101 | timeout: 600s |
| 102 | |
| 103 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 104 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging'] |
| 105 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 106 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 107 | - name: 'gcr.io/cloud-builders/docker' |
| 108 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging'] |
| 109 | timeout: 600s |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 110 | |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 111 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 112 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA', '/workspace/__particles_staging'] |
| 113 | timeout: 600s |
| 114 | |
| 115 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 116 | 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] | 117 | timeout: 600s |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 118 | |
| 119 | - name: 'gcr.io/cloud-builders/docker' |
Joe Gregorio | 024a912 | 2019-06-19 14:58:07 -0400 | [diff] [blame] | 120 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA', '/workspace/__debugger_assets_staging'] |
| 121 | timeout: 600s |
| 122 | |
| 123 | - name: 'gcr.io/cloud-builders/docker' |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 124 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA', '/workspace/__jsfiddle_staging'] |
| 125 | timeout: 600s |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 126 | |
| 127 | - name: 'gcr.io/cloud-builders/docker' |
| 128 | args: ['build', '-t', 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA', '/workspace/__api_staging'] |
| 129 | timeout: 600s |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 130 | images: |
| 131 | - 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 132 | - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA' |
Kevin Lubick | b6b3188 | 2019-03-12 11:09:12 -0400 | [diff] [blame] | 133 | - 'gcr.io/$PROJECT_ID/particles:$COMMIT_SHA' |
Joe Gregorio | 6407c3d | 2018-07-23 11:45:23 -0400 | [diff] [blame] | 134 | - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA' |
Joe Gregorio | 024a912 | 2019-06-19 14:58:07 -0400 | [diff] [blame] | 135 | - 'gcr.io/$PROJECT_ID/debugger-assets:$COMMIT_SHA' |
Kevin Lubick | df3a6ee | 2018-11-08 13:22:14 -0500 | [diff] [blame] | 136 | - 'gcr.io/$PROJECT_ID/jsfiddle:$COMMIT_SHA' |
Joe Gregorio | df5b725 | 2019-03-12 14:29:49 -0400 | [diff] [blame] | 137 | - 'gcr.io/$PROJECT_ID/api:$COMMIT_SHA' |
Joe Gregorio | 0725bdb | 2018-07-03 09:39:24 -0400 | [diff] [blame] | 138 | - 'gcr.io/$PROJECT_ID/skia-release:prod' |
Kevin Lubick | 9617569 | 2018-11-05 17:28:53 -0500 | [diff] [blame] | 139 | - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod' |
Joe Gregorio | 3eff1e9 | 2018-07-03 14:41:23 -0400 | [diff] [blame] | 140 | timeout: 7200s |
Joe Gregorio | a83bb57 | 2018-07-31 16:04:47 -0400 | [diff] [blame] | 141 | options: |
| 142 | machineType: 'N1_HIGHCPU_32' |