From d03b04f8223adaae8862ec1387e8bb6f60d6047d Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 18 Jul 2019 20:57:53 +0400 Subject: [PATCH] =?UTF-8?q?dk:=20ajouter=20automatiquement=20le=20suffixe?= =?UTF-8?q?=20-$DIST=20=C3=A0=20la=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dk b/dk index 3e93dfa..1047aab 100755 --- a/dk +++ b/dk @@ -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") }