From e17469084dc74a2a3f0ddc1d89cee817c32900e2 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Sat, 1 Nov 2025 21:22:26 +0100 Subject: [PATCH] fix(ci): Improve runtime-base image reference handling in build job - Better handling of optional runtime-base outputs - Added null check for runtime-base image_ref - Improved logging when using freshly built runtime image --- .gitea/workflows/build-image.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index ac9f341a..1899c58e 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -648,9 +648,11 @@ jobs: DEFAULT_IMAGE="${{ env.REGISTRY }}/${{ env.RUNTIME_IMAGE_NAME }}:latest" SELECTED_IMAGE="$DEFAULT_IMAGE" - RUNTIME_BASE_REF="${{ needs.runtime-base.outputs.image_ref || '' }}" - if [ -n "$RUNTIME_BASE_REF" ] && [ "$RUNTIME_BASE_REF" != "" ]; then + # Try to get runtime-base image_ref (may not be available if runtime-base was skipped) + RUNTIME_BASE_REF="${{ needs.runtime-base.outputs.image_ref }}" + if [ -n "$RUNTIME_BASE_REF" ] && [ "$RUNTIME_BASE_REF" != "" ] && [ "$RUNTIME_BASE_REF" != "null" ]; then SELECTED_IMAGE="$RUNTIME_BASE_REF" + echo "ℹ️ Verwende frisch gebautes Runtime-Image: $SELECTED_IMAGE" else if ! docker pull "$DEFAULT_IMAGE" >/dev/null 2>&1; then ALT_REGISTRY="${{ env.REGISTRY_URL }}"