.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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Verify Fix
|
||||
run: cat /etc/hosts
|
||||
|
||||
- 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: Preset Container
|
||||
uses: http://gitea.tecamino.local:8418/paadi/giteaGlobals/presetLocalContainer@main
|
||||
|
||||
- name: Check out repo code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user