ci: v0.13.0 — DNS diagnostics daemon-side probe uses local node:22-alpine (no image pull)

This commit is contained in:
2026-09-19 07:53:22 +00:00
parent 54c7a0c5f5
commit c30f5f650f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ jobs:
done
curl -so /dev/null --max-time 10 -w 'registry.npmjs.org https %{time_total}s\n' https://registry.npmjs.org || echo 'curl registry FAILED'
echo '=== daemon-side (default bridge) ==='
timeout 90 docker run --rm alpine sh -c 'cat /etc/resolv.conf; nslookup registry.npmjs.org >/dev/null 2>&1 && echo "daemon-bridge DNS OK" || echo "daemon-bridge DNS FAILED"' || echo 'daemon-side probe FAILED'
# node:22-alpine is already local on the shared daemon (CI builds use it) — no pull needed when the network is down.
timeout 90 docker run --rm node:22-alpine sh -c "cat /etc/resolv.conf; node -e \"require('dns').lookup('registry.npmjs.org',(e,a)=>{console.log(e?'daemon-bridge DNS FAILED':'daemon-bridge DNS OK '+a);process.exit(e?1:0)})\"" || echo 'daemon-side probe FAILED'
- name: Setup Node
uses: actions/setup-node@v4