From 8ced72e670e9351ada2bc65042bf5fab108ecbf8 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sat, 14 Sep 2024 21:35:55 -0400 Subject: [PATCH] Fix regex for publishing v2 image Signed-off-by: Yuri Shkuro --- scripts/build-upload-a-docker-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-upload-a-docker-image.sh b/scripts/build-upload-a-docker-image.sh index 29b0dc80647..38e873f6073 100755 --- a/scripts/build-upload-a-docker-image.sh +++ b/scripts/build-upload-a-docker-image.sh @@ -99,7 +99,7 @@ else echo "::endgroup::" # Only push multi-arch images to dockerhub/quay.io for main branch or for release tags vM.N.P{-rcX} - if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then echo "will build docker images and upload to dockerhub/quay.io, BRANCH=$BRANCH" bash scripts/docker-login.sh PUSHTAG="type=image,push=true"