Files
rdgen/.gitea/workflows/_diag.yml
T
2026-09-30 00:15:54 +08:00

21 lines
886 B
YAML

name: _diag runner net
on:
workflow_dispatch:
jobs:
diag:
runs-on: ubuntu-latest
steps:
- name: candidate addresses probe
shell: bash
run: |
echo "== resolv.conf"; cat /etc/resolv.conf
for u in https://gitea.naeeo.com/ http://10.0.0.250:39630/ http://gitea:3000/; do
h=$(echo "$u" | sed -E 's#^[a-zA-Z]+://##; s#[/:].*$##')
echo "==== $u (host=$h)"
getent hosts "$h" || echo "DNS FAIL"
curl -sS -m 10 -o /dev/null -w " http_code=%{http_code} time=%{time_total} remote=%{remote_ip}\n" "$u" || echo " CURL FAIL rc=$?"
done
echo "==== api checks"
curl -sS -m 10 -o /dev/null -w "public api: %{http_code}\n" https://gitea.naeeo.com/api/v1/version
curl -sS -m 10 -o /dev/null -w "lan api: %{http_code}\n" http://10.0.0.250:39630/api/v1/version