From d443811e1af8d3bd65d18058208995d0a0becd12 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 30 Sep 2024 21:44:02 +0300 Subject: [PATCH] build-scripts: short/full tags for final image --- build-scripts/image.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/build-scripts/image.sh b/build-scripts/image.sh index 0a5bafc..b649544 100755 --- a/build-scripts/image.sh +++ b/build-scripts/image.sh @@ -25,14 +25,22 @@ gobool_to_int() { NGX_DEBUG=$(gobool_to_int "${NGX_DEBUG:-0}" 0) case "${NGX_DEBUG}" in -0 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}" ;; -1 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}-debug" ;; +0 ) + img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}" + img_fq="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}" +;; +1 ) + img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-debug" + img_fq="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}-debug" +;; esac -exec buildah bud \ +buildah bud \ -f ./Dockerfile \ - -t "${img}" \ + -t "${img_fq}" \ --env "ANGIE_VERSION=${ANGIE_VERSION}" \ --env "NGX_DEBUG=${NGX_DEBUG}" \ --pull=missing --no-cache \ --build-arg "IMAGE_VERSION=${IMAGE_VERSION}" \ + +podman tag "${img_fq}" "${img}"