.gitea/workflows/build.yaml aktualisiert
Build go program / Explore-Gitea-Actions (push) Has been cancelled
Build go program / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -9,14 +9,14 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Force DNS Fix
|
- name: Force DNS Fix (Robust)
|
||||||
shell: bash
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
# Ermittelt die IP des Docker-Gateways (die Synology)
|
# Extrahiert die Gateway-IP aus der Routing-Tabelle ohne 'ip' Befehl
|
||||||
GATEWAY_IP=$(ip route show | grep default | awk '{print $3}')
|
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"
|
echo "Gefundene Gateway-IP: $GATEWAY_IP"
|
||||||
# Schreibt den Eintrag hart in die /etc/hosts des aktuellen Jobs
|
# Schreibt den Eintrag in die /etc/hosts
|
||||||
echo "$GATEWAY_IP gitea.tecamino.local" | tee -a /etc/hosts
|
echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts
|
||||||
|
|
||||||
- name: Verify Fix
|
- name: Verify Fix
|
||||||
run: cat /etc/hosts
|
run: cat /etc/hosts
|
||||||
|
|||||||
Reference in New Issue
Block a user