From 5e0009c545b2537c35cfe64525935de2711c3047 Mon Sep 17 00:00:00 2001 From: paadi Date: Tue, 14 Apr 2026 16:14:56 +0200 Subject: [PATCH] =?UTF-8?q?presetLocalContainer/action.yaml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- presetLocalContainer/action.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 presetLocalContainer/action.yaml diff --git a/presetLocalContainer/action.yaml b/presetLocalContainer/action.yaml new file mode 100644 index 0000000..21a2efc --- /dev/null +++ b/presetLocalContainer/action.yaml @@ -0,0 +1,20 @@ +name: presetLocalContainer +description: preseting Gitea Job Runner + + +runs: + steps: + #- name: Disable SSL verify (TEST ONLY) + # run: git config --global http.sslVerify false + + - name: Force DNS Fix (Robust) + shell: sh + run: | + # extract gateway-IP from routing-table + 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" + # write entry in /etc/hosts + echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts + + - name: Verify Fix + run: cat /etc/hosts \ No newline at end of file