Actualizar .github/workflows/ping.yml
Some checks failed
Sync selected files to GitHub / sync (push) Failing after 2s
Some checks failed
Sync selected files to GitHub / sync (push) Failing after 2s
This commit is contained in:
35
.github/workflows/ping.yml
vendored
35
.github/workflows/ping.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Network Diagnostic
|
name: Test DNS
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -7,34 +7,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check connectivity
|
- run: |
|
||||||
run: |
|
ping -c 1 gitea || echo "No ping"
|
||||||
set +e
|
|
||||||
echo "Testing network from runner"
|
|
||||||
|
|
||||||
echo "--- HTTP/S connectivity ---"
|
|
||||||
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
|
|
||||||
echo "Exit code: $?"
|
|
||||||
curl -v --connect-timeout 3 https://git.natxocc.com 2>&1 | head -5
|
|
||||||
echo "Exit code: $?"
|
|
||||||
|
|
||||||
echo "--- Ping via nc (port open) ---"
|
|
||||||
nc -zv -w 2 gitea 3000 2>&1
|
|
||||||
echo "Exit code: $?"
|
|
||||||
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 ---"
|
|
||||||
getent hosts gitea
|
getent hosts gitea
|
||||||
echo "Exit code: $?"
|
curl -v http://gitea:3000 2>&1 | head -10
|
||||||
getent hosts git.natxocc.com
|
|
||||||
echo "Exit code: $?"
|
|
||||||
getent hosts host-gateway
|
|
||||||
echo "Exit code: $?"
|
|
||||||
|
|
||||||
echo "--- Runner IPs ---"
|
|
||||||
ip addr show | grep "inet " | awk '{print $2}'
|
|
||||||
Reference in New Issue
Block a user