dkbuild: corriger calcul des tags

This commit is contained in:
Jephté Clain 2023-01-08 15:47:29 +04:00
parent c671cb399d
commit c9e8110ece
1 changed files with 6 additions and 2 deletions

View File

@ -1938,8 +1938,12 @@ function define_functions_cmd() {
fi fi
if [ -n "$autotag" ]; then if [ -n "$autotag" ]; then
if [ -n "$DIST" ]; then if [ -n "$DIST" ]; then
[ -n "$HAVE_VERSION" -a "$VERSION" == "$LAST_VERSION" ] && imagetags+=("$imagetag:$DIST") if [ -z "$HAVE_VERSION" ]; then
dist LATEST && imagetags+=("$imagetag:latest") dist LATEST && imagetags+=("$imagetag:latest")
elif [ "$VERSION" == "$LAST_VERSION" ]; then
imagetags+=("$imagetag:$DIST")
dist LATEST && imagetags+=("$imagetag:latest")
fi
elif [ -n "$PROFILE" ]; then elif [ -n "$PROFILE" ]; then
profile DEFAULT && imagetags+=("$imagetag:latest") profile DEFAULT && imagetags+=("$imagetag:latest")
else else