Actualizar .github/workflows/ping.yml
Some checks failed
Sync selected files to GitHub / sync (push) Failing after 2s

This commit is contained in:
2026-04-26 18:14:17 +02:00
parent c653d361d6
commit 73d5c12f13

View File

@@ -9,22 +9,32 @@ jobs:
steps: steps:
- name: Check connectivity - name: Check connectivity
run: | run: |
set +e
echo "Testing network from runner" echo "Testing network from runner"
echo "--- HTTP/S connectivity ---" echo "--- HTTP/S connectivity ---"
curl -v --connect-timeout 3 http://gitea:3000 2>&1 | head -5 curl -v --connect-timeout 3 http://gitea:3000 2>&1 | head -5
echo "Exit code: $?"
curl -v --connect-timeout 3 http://192.168.1.100:3333 2>&1 | head -5 curl -v --connect-timeout 3 http://192.168.1.100:3333 2>&1 | head -5
echo "Exit code: $?"
curl -v --connect-timeout 3 https://git.natxocc.com 2>&1 | head -5 curl -v --connect-timeout 3 https://git.natxocc.com 2>&1 | head -5
echo "Exit code: $?"
echo "--- Ping via nc (port open) ---" echo "--- Ping via nc (port open) ---"
nc -zv -w 2 gitea 3000 2>&1 || echo "gitea:3000 failed" nc -zv -w 2 gitea 3000 2>&1
nc -zv -w 2 192.168.1.100 3333 2>&1 || echo "192.168.1.100:3333 failed" echo "Exit code: $?"
nc -zv -w 2 git.natxocc.com 443 2>&1 || echo "git.natxocc.com:443 failed" nc -zv -w 2 192.168.1.100 3333 2>&1
echo "Exit code: $?"
nc -zv -w 2 git.natxocc.com 443 2>&1
echo "Exit code: $?"
echo "--- DNS resolution ---" echo "--- DNS resolution ---"
getent hosts gitea || echo "gitea not resolved" getent hosts gitea
getent hosts git.natxocc.com || echo "git.natxocc.com not resolved" echo "Exit code: $?"
getent hosts host-gateway || echo "host-gateway not resolved" getent hosts git.natxocc.com
echo "Exit code: $?"
getent hosts host-gateway
echo "Exit code: $?"
echo "--- Runner IPs ---" echo "--- Runner IPs ---"
ip addr show | grep "inet " | awk '{print $2}' ip addr show | grep "inet " | awk '{print $2}'