[Fix] Correzione autenticazione Gitea Actions
Build and Push Docker Images / Build Linux Container (push) Failing after 1m0s
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

- Sostituito gitea.actor con username hardcoded 'alessio'
- Corretto tutti i riferimenti gitea.ref con github.ref
- Gitea Actions usa le stesse variabili di GitHub per compatibilità
- Aggiornata documentazione con spiegazione context variables
- Fix: username nel docker login ora funzionante
This commit is contained in:
2026-01-24 12:33:04 +01:00
parent c74a00511c
commit 5b1d7d1ea2
2 changed files with 25 additions and 20 deletions
+9 -4
View File
@@ -159,14 +159,19 @@ services:
### Principali Differenze
1. **Context Variables**:
- GitHub: `github.*` → Gitea: `gitea.*`
- Esempio: `github.actor``gitea.actor`
- Gitea Actions usa le **stesse variabili** di GitHub Actions: `github.*`
- Esempio: `github.ref`, `github.sha`, `github.actor`
- **Nota**: Anche se il servizio è Gitea, le variabili mantengono il prefisso `github` per compatibilità
2. **Registry**:
2. **Username**:
- Nel workflow è hardcoded come `alessio` per semplicità
- Puoi usare `${{ github.actor }}` se preferisci (utente che ha triggerato il workflow)
3. **Registry**:
- GitHub: `ghcr.io` → Gitea: `gitea.home-nas-ds.org` (istanza self-hosted)
- Gitea non ha un registry pubblico centralizzato come GitHub
3. **Secret Name**:
4. **Secret Name**:
- GitHub: `GITHUB_TOKEN` (automatico) → Gitea: `GITEA_TOKEN` (configurato manualmente)
4. **Attestation**: