fix: Ripristina dominio pubblico gitea.home-nas-ds.org per registry
Build Docker Image for Raspberry Pi / build-and-push (push) Successful in 8m29s
Build Docker Image for Raspberry Pi / build-and-push (push) Successful in 8m29s
- Necessario configurare il runner per risolvere il dominio all'IP locale - Evita problemi con pull dall'esterno usando tag con IP locale - Mantiene compatibilità con accesso pubblico al registry
This commit is contained in:
@@ -32,8 +32,8 @@ jobs:
|
|||||||
- name: Prepare image name
|
- name: Prepare image name
|
||||||
id: image-name
|
id: image-name
|
||||||
run: |
|
run: |
|
||||||
# Usa il registry Gitea locale (IP per evitare Cloudflare)
|
# Usa il registry Gitea (il runner deve risolvere il dominio all'IP locale)
|
||||||
echo "IMAGE_NAME=192.168.1.37/alessio/ha-voltronic-mqtt" >> $GITHUB_OUTPUT
|
echo "IMAGE_NAME=gitea.home-nas-ds.org/alessio/ha-voltronic-mqtt" >> $GITHUB_OUTPUT
|
||||||
echo "SHOULD_PUSH=true" >> $GITHUB_OUTPUT
|
echo "SHOULD_PUSH=true" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
192.168.1.37/alessio/ha-voltronic-mqtt
|
gitea.home-nas-ds.org/alessio/ha-voltronic-mqtt
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: 192.168.1.37
|
registry: gitea.home-nas-ds.org
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user