2 parents 55e794c + acdafee commit f14a35aCopy full SHA for f14a35a
1 file changed
.github/workflows/deploy-kali.yml
@@ -39,7 +39,11 @@ jobs:
39
sudo systemctl restart airstrike
40
sleep 3
41
test "$(sudo systemctl is-active airstrike)" = active
42
- curl -fsS -o /dev/null -w "smoke: /login HTTP %{http_code}\n" http://127.0.0.1:5000/login
+ # Liveness only (mode-agnostic): any HTTP response = server up. Don't assert a
43
+ # specific route/status, since /login exists only when auth is enabled.
44
+ code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:5000/ || echo 000)
45
+ test "$code" != "000"
46
+ echo "smoke: server responded HTTP $code"
47
echo "::endgroup::"
48
49
echo "Deployed ${GITHUB_SHA} to the Kali lab."
0 commit comments