fix: use wget instead of curl for health check
ci/woodpecker/push/build Pipeline was successful

The 'docker' CLI image does not include curl binary,
causing the health check to always fail. Switch to wget.
This commit is contained in:
becomer
2026-07-01 12:47:05 +08:00
parent 70f907d909
commit 69e198f745
+1 -1
View File
@@ -69,7 +69,7 @@ steps:
# 健康检查:等待新容器就绪
HEALTHY=false
for i in $(seq 1 15); do
if curl -sf http://10.10.10.128:$PORT_STANDBY/health >/dev/null 2>&1; then
if wget -q --timeout=3 -O /dev/null http://10.10.10.128:$PORT_STANDBY/health 2>/dev/null; then
HEALTHY=true
break
fi