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