Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c36be162f |
@@ -265,18 +265,6 @@ jobs:
|
||||
|
||||
echo "✅ All health checks passed!"
|
||||
|
||||
- name: (Fallback) Probe via host-published port
|
||||
if: always()
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# In case you also want to verify the host-published port from inside the job container:
|
||||
HOST_GATEWAY="$(ip route | awk '/default/ {print $3}')"
|
||||
echo "🔎 Host gateway is $HOST_GATEWAY — probing http://$HOST_GATEWAY:8080/health"
|
||||
docker run --rm curlimages/curl:8.10.1 \
|
||||
-sS --max-time 5 --connect-timeout 3 -w "HTTP_CODE:%{http_code}\n" \
|
||||
"http://$HOST_GATEWAY:8080/health" || true
|
||||
|
||||
|
||||
- name: Container logs and cleanup
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user