Kevin Lubick | 556350d | 2018-10-12 15:21:17 -0400 | [diff] [blame] | 1 | gold_docker_image: aggregator |
Kevin Lubick | a0ba612 | 2018-08-15 13:45:28 -0400 | [diff] [blame] | 2 | # Set the build context to the current work dir, so we can copy |
| 3 | # the built binary to where we need it. |
| 4 | docker build -t gold-karma-chrome-tests -f ./docker/gold-karma-chrome-tests/Dockerfile . |
| 5 | |
Kevin Lubick | 556350d | 2018-10-12 15:21:17 -0400 | [diff] [blame] | 6 | perf_docker_image: aggregator |
| 7 | # Set the build context to the current work dir, so we can copy |
| 8 | # the built binary to where we need it. |
| 9 | docker build -t perf-karma-chrome-tests -f ./docker/perf-karma-chrome-tests/Dockerfile . |
| 10 | |
Kevin Lubick | a0ba612 | 2018-08-15 13:45:28 -0400 | [diff] [blame] | 11 | aggregator: |
| 12 | mkdir -p ./tmp |
Kevin Lubick | 556350d | 2018-10-12 15:21:17 -0400 | [diff] [blame] | 13 | CGO_ENABLED=0 GOOS=linux go build -o ./tmp/gold-aggregator -a ./gold/ |
| 14 | mkdir -p ./tmp |
| 15 | CGO_ENABLED=0 GOOS=linux go build -o ./tmp/perf-aggregator -a ./perf/ |
| 16 | |
| 17 | # Can check CHROME_VERSION with |
| 18 | # docker run karma-chrome-tests /usr/bin/google-chrome-stable --version |
Kevin Lubick | d618027 | 2019-03-12 14:06:19 -0400 | [diff] [blame] | 19 | CHROME_VERSION=72.0.3626.121_v1 |
Kevin Lubick | 556350d | 2018-10-12 15:21:17 -0400 | [diff] [blame] | 20 | |
| 21 | publish_gold_karma_chrome_tests: gold_docker_image |
| 22 | docker tag gold-karma-chrome-tests gcr.io/skia-public/gold-karma-chrome-tests:${CHROME_VERSION} |
| 23 | docker push gcr.io/skia-public/gold-karma-chrome-tests:${CHROME_VERSION} |
| 24 | |
| 25 | publish_perf_karma_chrome_tests: perf_docker_image |
| 26 | docker tag perf-karma-chrome-tests gcr.io/skia-public/perf-karma-chrome-tests:${CHROME_VERSION} |
Kevin Lubick | d618027 | 2019-03-12 14:06:19 -0400 | [diff] [blame] | 27 | docker push gcr.io/skia-public/perf-karma-chrome-tests:${CHROME_VERSION} |