From 6ab03ba42083aaff26cee86ea474a6800d6d1fd8 Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Sat, 24 Jan 2026 13:44:41 +0100 Subject: [PATCH] [Debug] Aggiunto debug per Dockerfile.windows - Aggiunto step per verificare working directory e files - Controllo esistenza Dockerfile.windows prima del build - Miglior error handling con exit codes - Debug: unable to find Dockerfile.windows --- .gitea/workflows/docker-build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index f936810..e644cb6 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -99,18 +99,40 @@ jobs: packages: write steps: + - name: Debug - Check working directory + run: | + echo Current directory: + cd + echo. + echo Files in current directory: + dir + echo. + echo Looking for Dockerfiles: + dir Dockerfile* + shell: cmd + continue-on-error: true + - name: Log in to Gitea Container Registry run: echo ${{ secrets.REGISTRY_TOKEN }} | docker login ${{ env.REGISTRY }} -u alessio --password-stdin shell: cmd - name: Build and push Windows Docker image run: | + REM Check if Dockerfile exists + if not exist Dockerfile.windows ( + echo ERROR: Dockerfile.windows not found! + dir + exit /b 1 + ) + set BRANCH=${{ github.ref_name }} set SHA=${{ github.sha }} set SHORT_SHA=%SHA:~0,7% + echo Building Windows image... REM Build image docker build -t temp-image -f Dockerfile.windows . + if errorlevel 1 exit /b 1 REM Tag and push based on branch if "%BRANCH%"=="main" (