influxdb/circle.yml

83 lines
2.6 KiB
YAML
Raw Normal View History

2016-09-10 00:45:06 +00:00
---
machine:
services:
- docker
environment:
DOCKER_TAG: chronograf-20170208
2016-09-10 00:45:06 +00:00
dependencies:
override:
- ./etc/scripts/docker/pull.sh
2016-09-15 20:00:56 +00:00
2016-09-10 00:45:06 +00:00
test:
override:
- >
./etc/scripts/docker/run.sh
--test
--no-build
deployment:
master:
branch: master
commands:
- >
./etc/scripts/docker/run.sh
--clean
--package
--platform all
--arch all
--upload
- 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}
- docker tag chronograf quay.io/influxdb/chronograf:latest
- docker push quay.io/influxdb/chronograf:latest
- mv ./build/* $CIRCLE_ARTIFACTS
pre-release:
tag: /^[0-9]+(\.[0-9]+)*(\S*)([a|rc|beta]([0-9]+))+$/
commands:
- >
./etc/scripts/docker/run.sh
--clean
--release
--package
--platform all
--arch all
2017-01-27 21:31:04 +00:00
--upload-overwrite
--upload
--bucket dl.influxdata.com/chronograf/releases
- 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
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}
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_TAG}
- docker push quay.io/influxdb/chronograf:${CIRCLE_TAG}
- mv ./build/* $CIRCLE_ARTIFACTS
release:
tag: /^[0-9]+(\.[0-9]+)*$/
commands:
- >
./etc/scripts/docker/run.sh
--clean
--release
--package
--platform all
--arch all
2017-01-27 21:31:04 +00:00
--upload-overwrite
--upload
--bucket dl.influxdata.com/chronograf/releases
- 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
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}
- docker tag chronograf quay.io/influxdb/chronograf:${CIRCLE_TAG}
- docker push quay.io/influxdb/chronograf:${CIRCLE_TAG}
- mv ./build/* $CIRCLE_ARTIFACTS