Aggiornamento staging #1

Merged
Alessio merged 25 commits from main into staging 2026-01-24 17:31:13 +01:00
2 changed files with 63 additions and 0 deletions
Showing only changes of commit f3afede0e1 - Show all commits
+55
View File
@@ -189,6 +189,28 @@ Gitea Actions è compatibile con la maggior parte delle GitHub Actions disponibi
## 🛠️ Troubleshooting
### Verificare che il Container Registry sia Abilitato
Prima di tutto, verifica che il Container Registry sia abilitato sulla tua istanza Gitea:
1. **Controlla la configurazione Gitea** (`app.ini`):
```ini
[packages]
ENABLED = true
```
2. **Verifica accesso al registry**:
```bash
curl https://gitea.home-nas-ds.org/v2/
# Dovrebbe rispondere con status 401 (richiede autenticazione)
# Se ottieni 404, il registry non è abilitato
```
3. **Test autenticazione**:
```bash
echo "YOUR_TOKEN" | docker login gitea.home-nas-ds.org -u alessio --password-stdin
```
### Errore di Autenticazione
Se ottieni errori di autenticazione:
@@ -225,6 +247,39 @@ Se le immagini non vengono pubblicate:
- **Manifest Multi-Platform**: I manifest multi-platform permettono di usare lo stesso tag per Linux e Windows
- **Alternative Registry**: Se non hai un'istanza Gitea con registry, puoi configurare Docker Hub o altri registry modificando la variabile `REGISTRY`
### 🐳 Configurazione Registry Alternativi
Se il Container Registry di Gitea non è disponibile, puoi usare alternative:
#### Docker Hub
```yaml
env:
REGISTRY: docker.io
IMAGE_NAME: username/data-coupler
# Nel login step:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
```
#### GitHub Container Registry (come fallback)
```yaml
env:
REGISTRY: ghcr.io
IMAGE_NAME: alessio/data-coupler
# Nel login step:
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
```
---
**Versione**: 1.0
+8
View File
@@ -35,6 +35,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Debug - Check registry access
run: |
echo "Testing registry access..."
curl -v https://gitea.home-nas-ds.org/v2/ || echo "Registry not accessible"
echo "Registry: ${{ env.REGISTRY }}"
echo "Image: ${{ env.IMAGE_NAME }}"
continue-on-error: true
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with: