From 6e6b457b9630cb2cb7fe970f586dfbe0e2773105 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Thu, 17 Aug 2023 17:49:59 +0200 Subject: [PATCH] Fix generator docker release tags (#955) Add correct image tags to generator docker-publish CI steps. Signed-off-by: SuperQ --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b783339b..f69d47ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,8 +76,13 @@ jobs: make -C generator docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" make -C generator docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=quay.io/prometheus fi - - run: make -C generator docker-publish - - run: make -C generator docker-publish DOCKER_REPO=quay.io/prometheus + - run: make -C generator docker-publish DOCKER_IMAGE_TAG=$CIRCLE_TAG + - run: make -C generator docker-publish DOCKER_IMAGE_TAG=$CIRCLE_TAG DOCKER_REPO=quay.io/prometheus + - run: | + if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then + make -C generator docker-publish DOCKER_IMAGE_TAG="latest" + make -C generator docker-publish DOCKER_IMAGE_TAG="latest" DOCKER_REPO=quay.io/prometheus + fi mixin: executor: golang