[Fix] Download repository con curl per Windows
Build and Push Docker Images / Build Windows Container (push) Failing after 1s
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

- Gitea Actions non clona automaticamente il repo
- Download repo da GitHub come ZIP con curl
- Estrazione con tar (nativo Windows 10+)
- Spostamento files nella working directory
- Fix: working directory vuota, nessun Dockerfile
This commit is contained in:
2026-01-24 13:45:32 +01:00
parent 6ab03ba420
commit 5f3f1c4fa6
+15
View File
@@ -99,6 +99,21 @@ jobs:
packages: write packages: write
steps: steps:
- name: Download repository archive
run: |
echo Downloading repository from GitHub...
curl -L -o repo.zip https://github.com/${{ github.repository }}/archive/refs/heads/${{ github.ref_name }}.zip
echo Extracting archive...
tar -xf repo.zip
echo Moving files to current directory...
for /d %%d in (*-${{ github.ref_name }}) do (
xcopy "%%d\*" . /E /I /Y
rmdir "%%d" /S /Q
)
del repo.zip
echo Repository downloaded and extracted
shell: cmd
- name: Debug - Check working directory - name: Debug - Check working directory
run: | run: |
echo Current directory: echo Current directory: