From e8d32b45a576ed9387a64d26f0acb727644c6328 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Thu, 13 Jun 2024 23:41:30 +0200 Subject: [PATCH] label debug images with debug --- app/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.sh b/app/build.sh index c654c1c..f3c8290 100755 --- a/app/build.sh +++ b/app/build.sh @@ -31,7 +31,7 @@ fi echo version: $VERSION build-date: $BUILD_DATE image: $IMAGE if [[ $1 == debug ]];then -docker build --build-arg "VERSION=${VERSION}" --build-arg environment=dev --build-arg "LOG_LVL=DEBUG" --label "org.opencontainers.image.created=${BUILD_DATE}" --label "org.opencontainers.image.version=${VERSION}" --label "org.opencontainers.image.revision=${BRANCH}" -t ${IMAGE}:dev app +docker build --build-arg "VERSION=${VERSION}" --build-arg environment=dev --build-arg "LOG_LVL=DEBUG" --label "org.opencontainers.image.created=${BUILD_DATE}" --label "org.opencontainers.image.version=${VERSION}" --label "org.opencontainers.image.revision=${BRANCH}" -t ${IMAGE}:debug app elif [[ $1 == dev ]];then docker build --build-arg "VERSION=${VERSION}" --build-arg environment=production --label "org.opencontainers.image.created=${BUILD_DATE}" --label "org.opencontainers.image.version=${VERSION}" --label "org.opencontainers.image.revision=${BRANCH}" -t ${IMAGE}:dev app