diff --git a/.gitea/workflows/README.md b/.gitea/workflows/README.md index e90c23f..7262958 100644 --- a/.gitea/workflows/README.md +++ b/.gitea/workflows/README.md @@ -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 diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index d916233..a19e9c9 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -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: