blob: 8ca5de9ac65d3f549b7ee22218c504fdae1917a2 [file] [log] [blame]
Kevin Lubick556350d2018-10-12 15:21:17 -04001gold_docker_image: aggregator
Kevin Lubicka0ba6122018-08-15 13:45:28 -04002 # 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 Lubick556350d2018-10-12 15:21:17 -04006perf_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 Lubicka0ba6122018-08-15 13:45:28 -040011aggregator:
12 mkdir -p ./tmp
Kevin Lubick556350d2018-10-12 15:21:17 -040013 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 Lubickd6180272019-03-12 14:06:19 -040019CHROME_VERSION=72.0.3626.121_v1
Kevin Lubick556350d2018-10-12 15:21:17 -040020
21publish_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
25publish_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 Lubickd6180272019-03-12 14:06:19 -040027 docker push gcr.io/skia-public/perf-karma-chrome-tests:${CHROME_VERSION}