From 8e229fc77ca78e64da79403d1fb5eb5d6e65e512 Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Sat, 24 Jan 2026 17:23:47 +0100 Subject: [PATCH] [Fix] Clone da repository Gitea invece di GitHub - Cambiato URL da github.com a gitea.home-nas-ds.org - Usa REGISTRY_TOKEN per autenticazione git clone - Embedded credentials nell'URL (username:token@host) - Risolve: richiesta credenziali GitHub --- .gitea/workflows/docker-build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 8a3542f..62670df 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -101,8 +101,8 @@ jobs: steps: - name: Checkout repository with Git run: | - echo ===== Cloning repository ===== - git clone --depth 1 --branch ${{ github.ref_name }} https://github.com/${{ github.repository }}.git repo + echo ===== Cloning repository from Gitea ===== + git clone --depth 1 --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git repo if errorlevel 1 ( echo Failed to clone repository exit /b 1 @@ -120,6 +120,8 @@ jobs: dir /B exit /b 1 ) + env: + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} shell: cmd - name: Debug - Verify files