From a2ca59aa1185eafa6dc66f30a36f7a797359027e Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Thu, 12 Jan 2017 18:10:52 -0600 Subject: [PATCH] Update circle building of release tags to upload docker containers to quay --- circle.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/circle.yml b/circle.yml index 1e25034c11..b438d2062c 100644 --- a/circle.yml +++ b/circle.yml @@ -49,6 +49,13 @@ deployment: --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 + - 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:${CIRCLE_TAG} + - docker push quay.io/influxdb/chronograf:${CIRCLE_TAG} - mv ./build/* $CIRCLE_ARTIFACTS release: tag: /^[0-9]+(\.[0-9]+)*$/ @@ -63,4 +70,11 @@ deployment: --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 + - 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:${CIRCLE_TAG} + - docker push quay.io/influxdb/chronograf:${CIRCLE_TAG} - mv ./build/* $CIRCLE_ARTIFACTS