fix: route CRM registry pushes via NAS LAN
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 8s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 8s
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.mischlabs.de
|
REGISTRY: git.mischlabs.de
|
||||||
|
REGISTRY_LAN_IP: 192.168.178.88
|
||||||
REGISTRY_USER: MrDiderot
|
REGISTRY_USER: MrDiderot
|
||||||
REGISTRY_IMAGE: git.mischlabs.de/mrdiderot/crm
|
REGISTRY_IMAGE: git.mischlabs.de/mrdiderot/crm
|
||||||
|
|
||||||
@@ -44,6 +45,10 @@ jobs:
|
|||||||
- name: Log in to Gitea Package Registry
|
- name: Log in to Gitea Package Registry
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
|
if [ -n "${{ env.REGISTRY_LAN_IP }}" ]; then
|
||||||
|
echo "${{ env.REGISTRY_LAN_IP }} ${{ env.REGISTRY }}" >> /etc/hosts
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${{ secrets.REGISTRY_TOKEN }}" ]; then
|
if [ -z "${{ secrets.REGISTRY_TOKEN }}" ]; then
|
||||||
echo "Missing REGISTRY_TOKEN secret."
|
echo "Missing REGISTRY_TOKEN secret."
|
||||||
echo "Create a Gitea personal access token for MrDiderot with package Read and Write permission."
|
echo "Create a Gitea personal access token for MrDiderot with package Read and Write permission."
|
||||||
|
|||||||
Reference in New Issue
Block a user