fix(release): keep prerelease suffix in docker smoke-check version compare

The smoke check extracted the docker image version with `grep -oE 'v[0-9.]+'`,
which truncates "v1.0.1-beta" to "v1.0.1" and false-warns on a correct image.
Match the trailing suffix too.
This commit is contained in:
Deivid Soto 2026-06-03 19:29:35 +02:00
parent 2abaf74b13
commit 7877e1de42

View file

@ -179,7 +179,9 @@ if [ "$SKIP_SMOKE" != "1" ]; then
fi fi
if [ "$SKIP_DOCKER" != "1" ]; then if [ "$SKIP_DOCKER" != "1" ]; then
DOCKER_VERSION="$(docker run --rm "$DOCKER_IMAGE:$VERSION" version 2>/dev/null | grep -oE 'v[0-9.]+' | head -1)" # Keep any prerelease/build suffix (e.g. -beta) — `v[0-9.]+` alone would
# truncate "v1.0.1-beta" to "v1.0.1" and false-warn on a correct image.
DOCKER_VERSION="$(docker run --rm "$DOCKER_IMAGE:$VERSION" version 2>/dev/null | grep -oE 'v[0-9][0-9A-Za-z.+-]*' | head -1)"
if [ "$DOCKER_VERSION" = "$TAG" ]; then if [ "$DOCKER_VERSION" = "$TAG" ]; then
ok "docker image $DOCKER_IMAGE:$VERSION reports $DOCKER_VERSION" ok "docker image $DOCKER_IMAGE:$VERSION reports $DOCKER_VERSION"
else else