From 69e198f7456dbdcf34986e7c45bf6f01a2692a27 Mon Sep 17 00:00:00 2001 From: becomer Date: Wed, 1 Jul 2026 12:47:05 +0800 Subject: [PATCH] fix: use wget instead of curl for health check The 'docker' CLI image does not include curl binary, causing the health check to always fail. Switch to wget. --- .woodpecker/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 4d31a39..270f177 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -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