1 Commits

Author SHA1 Message Date
1112e0c1f2 Merge pull request 'feat: 使用無窮迴圈持續嘗試,直到成功取得有效狀態碼' (#1) from develop into master
All checks were successful
/ CD > 計算版本號 (push) Successful in 1s
/ CD > 發布專案 (push) Successful in 2s
Reviewed-on: #1
2026-03-25 14:09:24 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest
# 安裝必要的工具
RUN apk add --no-cache --no-check-certificate bash curl coreutils
RUN apk add --no-cache --no-check-certificate bash curl
COPY entrypoint.sh /entrypoint.sh

View File

@@ -28,8 +28,8 @@ while true; do
break
fi
# 休息 60 秒後重試
sleep 60
# 休息 1 秒後重試
sleep 1
done
# 將狀態碼輸出到環境變數