[Fix] Clone da repository Gitea invece di GitHub
Build and Push Docker Images / Build Windows Container (push) Failing after 2s
Build and Push Docker Images / Build Linux Container (push) Has been cancelled
Build and Push Docker Images / Create Multi-Platform Manifest (push) Has been cancelled

- 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
This commit is contained in:
2026-01-24 17:23:47 +01:00
parent 5915537e83
commit 8e229fc77c
+4 -2
View File
@@ -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