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:
parent
2abaf74b13
commit
7877e1de42
1 changed files with 3 additions and 1 deletions
|
|
@ -179,7 +179,9 @@ if [ "$SKIP_SMOKE" != "1" ]; then
|
|||
fi
|
||||
|
||||
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
|
||||
ok "docker image $DOCKER_IMAGE:$VERSION reports $DOCKER_VERSION"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue