From e3a8abee47655567ac8a82e4cfcfc07091270268 Mon Sep 17 00:00:00 2001 From: Aaron Kirkbride Date: Tue, 8 May 2018 10:28:41 +0100 Subject: [PATCH] Push tagged versions to quay.io --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index aeb5a4ec..4121f3b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -70,6 +70,8 @@ jobs: if [ -z "${CIRCLE_TAG}" -a "${CIRCLE_BRANCH}" == "master" ]; then docker push "quay.io/weaveworks/launcher-agent:$(docker/image-tag)" docker push "quay.io/weaveworks/launcher-agent" + elif echo "${CIRCLE_TAG}" | grep -Eq "^[0-9]+(\.[0-9]+)*(-[a-z]+)?$"; then + docker push "quay.io/weaveworks/launcher-agent:${CIRCLE_TAG}" else docker tag "quay.io/weaveworks/launcher-agent:$(docker/image-tag)" "quay.io/weaveworks/build-tmp-public:launcher-agent-$(docker/image-tag)" docker push "quay.io/weaveworks/build-tmp-public:launcher-agent-$(docker/image-tag)"