From 26edc3a9563d786eee56f1a68a8e53d51fcb9f75 Mon Sep 17 00:00:00 2001 From: Cristian Balas Date: Tue, 20 Apr 2021 18:29:36 +0300 Subject: [PATCH] Add docker image "2" tag for releases (#184) --- .circleci/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/build.sh b/.circleci/build.sh index 0247698de8..39414696a0 100755 --- a/.circleci/build.sh +++ b/.circleci/build.sh @@ -16,3 +16,8 @@ docker tag $DOCKER_IMAGE_TAG:latest $DOCKER_IMAGE_TAG:$IMAGE_VERSION_TAG echo "$DOCKER_REG_PASS" | docker login -u "$DOCKER_REG_USER" --password-stdin $DOCKER_REG_URL docker push $DOCKER_IMAGE_TAG:latest docker push $DOCKER_IMAGE_TAG:$IMAGE_VERSION_TAG + +if [[ "$CIRCLE_TAG" =~ ^v.* ]]; then + docker tag $DOCKER_IMAGE_TAG:latest $DOCKER_IMAGE_TAG:2 + docker push $DOCKER_IMAGE_TAG:2 +fi