From c9e8110ece2472067cf19e7b18b20d1e029fa69f Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Sun, 8 Jan 2023 15:47:29 +0400 Subject: [PATCH] dkbuild: corriger calcul des tags --- dkbuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dkbuild b/dkbuild index f22be52..15aa279 100755 --- a/dkbuild +++ b/dkbuild @@ -1938,8 +1938,12 @@ function define_functions_cmd() { fi if [ -n "$autotag" ]; then if [ -n "$DIST" ]; then - [ -n "$HAVE_VERSION" -a "$VERSION" == "$LAST_VERSION" ] && imagetags+=("$imagetag:$DIST") - dist LATEST && imagetags+=("$imagetag:latest") + if [ -z "$HAVE_VERSION" ]; then + dist LATEST && imagetags+=("$imagetag:latest") + elif [ "$VERSION" == "$LAST_VERSION" ]; then + imagetags+=("$imagetag:$DIST") + dist LATEST && imagetags+=("$imagetag:latest") + fi elif [ -n "$PROFILE" ]; then profile DEFAULT && imagetags+=("$imagetag:latest") else