Skip to content

Commit 0824fc2

Browse files
authored
Fix regex for publishing v2 image (#5988)
## Which problem is this PR solving? - Release attempt did not publish v2 image ``` [[ v2.0.0-rc1 =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] + echo 'skipping docker images upload, because not on tagged release or main branch' ``` ## Description of the changes - Fix the regex to include -rc suffix ## How was this change tested? - CI Signed-off-by: Yuri Shkuro <[email protected]>
1 parent e047f20 commit 0824fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-upload-a-docker-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ else
9999
echo "::endgroup::"
100100

101101
# Only push multi-arch images to dockerhub/quay.io for main branch or for release tags vM.N.P{-rcX}
102-
if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
102+
if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then
103103
echo "will build docker images and upload to dockerhub/quay.io, BRANCH=$BRANCH"
104104
bash scripts/docker-login.sh
105105
PUSHTAG="type=image,push=true"

0 commit comments

Comments
 (0)