[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 }}"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user