dk: ajouter automatiquement le suffixe -$DIST à la version

This commit is contained in:
Jephté Clain 2019-07-18 20:57:53 +04:00
parent 68794910a6
commit d03b04f822
1 changed files with 5 additions and 0 deletions

5
dk
View File

@ -570,8 +570,13 @@ function initialize_build_env() {
NAME=
TAGS=(latest)
VERSION=
DIST=
}
function default_update_build_env() {
if [ -n "$DIST" ]; then
[ -n "$VERSION" ] && VERSION="$VERSION-"
VERSION="$VERSION$DIST"
fi
[ -n "$VERSION" ] || docker_add_build_arg VERSION "$(get_version)"
[ -n "$VERSION" ] && TAGS+=("$VERSION")
}