[Debug] Aggiunto debug registry e documentazione troubleshooting
- Aggiunto step debug per verificare accesso al registry - Documentazione completa su come verificare Container Registry - Aggiunte istruzioni per registry alternativi (Docker Hub, GHCR) - Guida per testare autenticazione manualmente
This commit is contained in:
@@ -189,6 +189,28 @@ Gitea Actions è compatibile con la maggior parte delle GitHub Actions disponibi
|
|||||||
|
|
||||||
## 🛠️ Troubleshooting
|
## 🛠️ 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
|
### Errore di Autenticazione
|
||||||
|
|
||||||
Se ottieni errori 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
|
- **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`
|
- **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
|
**Versione**: 1.0
|
||||||
|
|||||||
@@ -35,6 +35,14 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
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
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user