[Debug] Verifica secret e usa docker login diretto
Build and Push Docker Images / Build Linux Container (push) Failing after 7m56s
Build and Push Docker Images / Build Windows Container (push) Has been cancelled
Build and Push Docker Images / Create Multi-Platform Manifest (push) Has been cancelled

- Aggiunto step per verificare che REGISTRY_TOKEN sia configurato
- Sostituito docker/login-action con docker login diretto
- Aggiunto controllo lunghezza token per debug
- Test con comando bash nativo per maggiore compatibilità
This commit is contained in:
2026-01-24 12:43:58 +01:00
parent f3afede0e1
commit deeeef984e
+14 -5
View File
@@ -43,12 +43,21 @@ jobs:
echo "Image: ${{ env.IMAGE_NAME }}" echo "Image: ${{ env.IMAGE_NAME }}"
continue-on-error: true continue-on-error: true
- name: Debug - Verify secret is configured
run: |
if [ -z "${{ secrets.REGISTRY_TOKEN }}" ]; then
echo "::error::REGISTRY_TOKEN secret is not configured or is empty!"
exit 1
else
echo "REGISTRY_TOKEN secret is configured (length: ${#REGISTRY_TOKEN})"
fi
env:
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v3 run: |
with: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u alessio --password-stdin
registry: ${{ env.REGISTRY }} shell: bash
username: ${{ gitea.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata for Docker - name: Extract metadata for Docker
id: meta id: meta