.gitea/workflows/build.yaml aktualisiert
Build go program / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2026-04-14 12:13:42 +02:00
parent 2ccfd42e3a
commit 960e041691
+6 -6
View File
@@ -9,14 +9,14 @@ jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Force DNS Fix
shell: bash
- name: Force DNS Fix (Robust)
shell: sh
run: |
# Ermittelt die IP des Docker-Gateways (die Synology)
GATEWAY_IP=$(ip route show | grep default | awk '{print $3}')
# Extrahiert die Gateway-IP aus der Routing-Tabelle ohne 'ip' Befehl
GATEWAY_IP=$(awk 'NR==2 {printf "%d.%d.%d.%d\n", "0x"substr($3,7,2), "0x"substr($3,5,2), "0x"substr($3,3,2), "0x"substr($3,1,2)}' /proc/net/route)
echo "Gefundene Gateway-IP: $GATEWAY_IP"
# Schreibt den Eintrag hart in die /etc/hosts des aktuellen Jobs
echo "$GATEWAY_IP gitea.tecamino.local" | tee -a /etc/hosts
# Schreibt den Eintrag in die /etc/hosts
echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts
- name: Verify Fix
run: cat /etc/hosts