fix: Usa IP locale 192.168.1.37 per registry invece del dominio
Build Docker Image for Raspberry Pi / build-and-push (push) Failing after 50s
Build Docker Image for Raspberry Pi / build-and-push (push) Failing after 50s
- Evita passaggio attraverso Cloudflare (413 Payload Too Large) - Registry in rete locale: 192.168.1.37 invece di gitea.home-nas-ds.org - Image name: 192.168.1.37/alessio/ha-voltronic-mqtt
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
|
# Usa il registry Gitea locale (IP per evitare Cloudflare)
|
||||||
echo "IMAGE_NAME=gitea.home-nas-ds.org/alessio/ha-voltronic-mqtt" >> $GITHUB_OUTPUT
|
echo "IMAGE_NAME=192.168.1.37/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: |
|
||||||
gitea.home-nas-ds.org/alessio/ha-voltronic-mqtt
|
192.168.1.37/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: gitea.home-nas-ds.org
|
registry: 192.168.1.37
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user