.gitea/workflows/build.yaml aktualisiert
Build go program / Explore-Gitea-Actions (push) Successful in 13m31s
Build go program / Explore-Gitea-Actions (push) Successful in 13m31s
add global preset container
This commit is contained in:
@@ -9,20 +9,8 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Verify Fix
|
- name: Preset Container
|
||||||
run: cat /etc/hosts
|
uses: http://gitea.tecamino.local:8418/paadi/giteaGlobals/presetLocalContainer@main
|
||||||
|
|
||||||
- name: Force DNS Fix (Robust)
|
|
||||||
shell: sh
|
|
||||||
run: |
|
|
||||||
# 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 in die /etc/hosts
|
|
||||||
echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts
|
|
||||||
|
|
||||||
- name: Verify Fix
|
|
||||||
run: cat /etc/hosts
|
|
||||||
|
|
||||||
- name: Check out repo code
|
- name: Check out repo code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user