[Debug] Verifica secret e usa docker login diretto
- 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:
@@ -43,12 +43,21 @@ jobs:
|
||||
echo "Image: ${{ env.IMAGE_NAME }}"
|
||||
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
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u alessio --password-stdin
|
||||
shell: bash
|
||||
|
||||
- name: Extract metadata for Docker
|
||||
id: meta
|
||||
|
||||
Reference in New Issue
Block a user