1
0

build-scripts: short/full tags for final image

This commit is contained in:
Konstantin Demin 2024-09-30 21:44:02 +03:00
parent ab3ec5752b
commit d443811e1a
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0

View File

@ -25,14 +25,22 @@ gobool_to_int() {
NGX_DEBUG=$(gobool_to_int "${NGX_DEBUG:-0}" 0) NGX_DEBUG=$(gobool_to_int "${NGX_DEBUG:-0}" 0)
case "${NGX_DEBUG}" in case "${NGX_DEBUG}" in
0 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}" ;; 0 )
1 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}-debug" ;; 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 esac
exec buildah bud \ buildah bud \
-f ./Dockerfile \ -f ./Dockerfile \
-t "${img}" \ -t "${img_fq}" \
--env "ANGIE_VERSION=${ANGIE_VERSION}" \ --env "ANGIE_VERSION=${ANGIE_VERSION}" \
--env "NGX_DEBUG=${NGX_DEBUG}" \ --env "NGX_DEBUG=${NGX_DEBUG}" \
--pull=missing --no-cache \ --pull=missing --no-cache \
--build-arg "IMAGE_VERSION=${IMAGE_VERSION}" \ --build-arg "IMAGE_VERSION=${IMAGE_VERSION}" \
podman tag "${img_fq}" "${img}"