2016-09-10 00:45:06 +00:00
|
|
|
---
|
|
|
|
machine:
|
2016-11-21 21:37:47 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
environment:
|
2017-10-27 15:11:09 +00:00
|
|
|
DOCKER_TAG: chronograf-20171027
|
2016-09-10 00:45:06 +00:00
|
|
|
|
|
|
|
dependencies:
|
2016-11-21 21:37:47 +00:00
|
|
|
override:
|
|
|
|
- ./etc/scripts/docker/pull.sh
|
2016-09-15 20:00:56 +00:00
|
|
|
|
2016-09-10 00:45:06 +00:00
|
|
|
test:
|
2016-11-21 21:37:47 +00:00
|
|
|
override:
|
|
|
|
- >
|
|
|
|
./etc/scripts/docker/run.sh
|
2017-02-08 16:24:10 +00:00
|
|
|
--debug
|
2016-11-21 21:37:47 +00:00
|
|
|
--test
|
|
|
|
--no-build
|
2016-09-16 20:47:38 +00:00
|
|
|
|
|
|
|
deployment:
|
2016-11-21 21:37:47 +00:00
|
|
|
master:
|
|
|
|
branch: master
|
|
|
|
commands:
|
|
|
|
- >
|
|
|
|
./etc/scripts/docker/run.sh
|
2017-02-08 16:17:19 +00:00
|
|
|
--debug
|
2016-11-21 21:37:47 +00:00
|
|
|
--clean
|
|
|
|
--package
|
|
|
|
--platform all
|
|
|
|
--arch all
|
2017-01-30 16:08:42 +00:00
|
|
|
--upload
|
2016-11-22 21:24:38 +00:00
|
|
|
- sudo chown -R ubuntu:ubuntu /home/ubuntu
|
|
|
|
- cp build/linux/static_amd64/chronograf .
|
|
|
|
- docker build -t chronograf .
|
|
|
|
- docker login -e $QUAY_EMAIL -u "$QUAY_USER" -p $QUAY_PASS quay.io
|
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
|
|
|
- docker push quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
2016-11-21 21:37:47 +00:00
|
|
|
- mv ./build/* $CIRCLE_ARTIFACTS
|
|
|
|
pre-release:
|
|
|
|
tag: /^[0-9]+(\.[0-9]+)*(\S*)([a|rc|beta]([0-9]+))+$/
|
|
|
|
commands:
|
|
|
|
- >
|
|
|
|
./etc/scripts/docker/run.sh
|
|
|
|
--clean
|
2017-02-08 16:17:19 +00:00
|
|
|
--debug
|
2016-11-21 21:37:47 +00:00
|
|
|
--release
|
|
|
|
--package
|
|
|
|
--platform all
|
|
|
|
--arch all
|
2017-01-27 21:31:04 +00:00
|
|
|
--upload-overwrite
|
2017-01-28 01:58:15 +00:00
|
|
|
--upload
|
2016-11-21 21:37:47 +00:00
|
|
|
--bucket dl.influxdata.com/chronograf/releases
|
2016-11-22 21:24:38 +00:00
|
|
|
- sudo chown -R ubuntu:ubuntu /home/ubuntu
|
2017-01-13 00:10:52 +00:00
|
|
|
- cp build/linux/static_amd64/chronograf .
|
|
|
|
- docker build -t chronograf .
|
|
|
|
- docker login -e $QUAY_EMAIL -u "$QUAY_USER" -p $QUAY_PASS quay.io
|
2017-01-14 00:08:15 +00:00
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
2017-01-14 00:26:41 +00:00
|
|
|
- docker push quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
2017-01-13 00:10:52 +00:00
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_TAG}
|
|
|
|
- docker push quay.io/influxdb/chronograf:${CIRCLE_TAG}
|
2016-11-21 21:37:47 +00:00
|
|
|
- mv ./build/* $CIRCLE_ARTIFACTS
|
|
|
|
release:
|
|
|
|
tag: /^[0-9]+(\.[0-9]+)*$/
|
|
|
|
commands:
|
|
|
|
- >
|
|
|
|
./etc/scripts/docker/run.sh
|
|
|
|
--clean
|
2017-02-08 16:17:19 +00:00
|
|
|
--debug
|
2016-11-21 21:37:47 +00:00
|
|
|
--release
|
|
|
|
--package
|
|
|
|
--platform all
|
|
|
|
--arch all
|
2017-01-27 21:31:04 +00:00
|
|
|
--upload-overwrite
|
2017-01-28 01:58:15 +00:00
|
|
|
--upload
|
2016-11-21 21:37:47 +00:00
|
|
|
--bucket dl.influxdata.com/chronograf/releases
|
2016-11-22 21:24:38 +00:00
|
|
|
- sudo chown -R ubuntu:ubuntu /home/ubuntu
|
2017-01-13 00:10:52 +00:00
|
|
|
- cp build/linux/static_amd64/chronograf .
|
|
|
|
- docker build -t chronograf .
|
|
|
|
- docker login -e $QUAY_EMAIL -u "$QUAY_USER" -p $QUAY_PASS quay.io
|
2017-01-14 00:08:15 +00:00
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
2017-01-14 00:26:41 +00:00
|
|
|
- docker push quay.io/influxdb/chronograf:${CIRCLE_SHA1:0:7}
|
2017-01-13 00:10:52 +00:00
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_TAG}
|
|
|
|
- docker push quay.io/influxdb/chronograf:${CIRCLE_TAG}
|
2017-09-27 21:22:18 +00:00
|
|
|
- docker tag chronograf quay.io/influxdb/chronograf:latest
|
|
|
|
- docker push quay.io/influxdb/chronograf:latest
|
2016-11-21 21:37:47 +00:00
|
|
|
- mv ./build/* $CIRCLE_ARTIFACTS
|