debug gitea issue
This commit is contained in:
23
.gitea/workflows/debug-network.yaml
Normal file
23
.gitea/workflows/debug-network.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Debug job network
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
debug:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Show job container network
|
||||
run: |
|
||||
echo "=== /etc/hosts ==="
|
||||
cat /etc/hosts
|
||||
echo "=== ip addr ==="
|
||||
ip addr || true
|
||||
echo "=== ping server ==="
|
||||
ping -c 1 server 2>&1 || true
|
||||
echo "=== getent hosts server ==="
|
||||
getent hosts server 2>&1 || true
|
||||
echo "=== try 127.0.0.1:3000 ==="
|
||||
curl -s -o /dev/null -w "%{http_code}" --connect-timeout 2 http://127.0.0.1:3000/ || echo "failed"
|
||||
echo ""
|
||||
echo "=== try host.docker.internal:3000 (if exists) ==="
|
||||
curl -s -o /dev/null -w "%{http_code}" --connect-timeout 2 http://host.docker.internal:3000/ 2>/dev/null || echo "failed/skipped"
|
||||
Reference in New Issue
Block a user