From 8fc19594421068c19fb32c3d0681290c2a7757fe Mon Sep 17 00:00:00 2001 From: Ben Foster Date: Wed, 3 Dec 2025 09:35:22 -0500 Subject: [PATCH] fix: Enable debug logging in buildah when TRACE is set closes #170 --- templates/gitlab-ci-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitlab-ci-docker.yml b/templates/gitlab-ci-docker.yml index db86b74..3da6313 100644 --- a/templates/gitlab-ci-docker.yml +++ b/templates/gitlab-ci-docker.yml @@ -1199,8 +1199,8 @@ docker-buildah-build: buildah_build_target_kind="--manifest" buildah_push_mode="manifest" fi - - echo $DOCKER_METADATA $DOCKER_BUILD_ARGS "$(docker_context_path)" | xargs buildah build --file "$DOCKER_FILE" $buildah_build_target_kind $DOCKER_SNAPSHOT_IMAGE $buildah_cache_args --build-arg http_proxy="$http_proxy" --build-arg https_proxy="$https_proxy" --build-arg no_proxy="$no_proxy" - - buildah $buildah_push_mode push --digestfile .img-digest.txt $DOCKER_PUSH_ARGS "$DOCKER_SNAPSHOT_IMAGE" + - echo $DOCKER_METADATA $DOCKER_BUILD_ARGS "$(docker_context_path)" | xargs buildah ${TRACE+--log-level debug} build --file "$DOCKER_FILE" $buildah_build_target_kind $DOCKER_SNAPSHOT_IMAGE $buildah_cache_args --build-arg http_proxy="$http_proxy" --build-arg https_proxy="$https_proxy" --build-arg no_proxy="$no_proxy" + - buildah ${TRACE+--log-level debug} $buildah_push_mode push --digestfile .img-digest.txt $DOCKER_PUSH_ARGS "$DOCKER_SNAPSHOT_IMAGE" # display digest of the resulting image - cat .img-digest.txt # create dotenv file -- GitLab