Correggi workflow Gitea Actions per usare registry self-hosted
Build Docker Image for Raspberry Pi / build-and-push (push) Failing after 39s

- Modificato docker-build.yml per usare gitea.home-nas-ds.org invece di Docker Hub
- Modificato docker-cleanup.yml per autenticazione con registry Gitea
- Usato github.token automatico invece di secrets esterni
- Aggiornata documentazione per riflettere i cambiamenti
This commit is contained in:
Pi Developer
2026-01-25 15:15:17 +01:00
parent 6af9fcad7e
commit 6d4812efbc
3 changed files with 16 additions and 11 deletions
+5 -4
View File
@@ -34,7 +34,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.DOCKER_USERNAME }}/ha-voltronic-mqtt
gitea.home-nas-ds.org/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
@@ -42,12 +42,13 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Login to Docker Hub
- name: Login to Gitea Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gitea.home-nas-ds.org
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
+4 -3
View File
@@ -15,11 +15,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Hub
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gitea.home-nas-ds.org
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Cleanup old development images
run: |