dkbuild: corriger calcul des tags
This commit is contained in:
parent
c671cb399d
commit
c9e8110ece
8
dkbuild
8
dkbuild
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue