2 Commits

Author SHA1 Message Date
fd7ffee647 Merge pull request 'feat: 使用 bash 預設的指令' (#5) from develop into master
All checks were successful
/ CD > 計算版本號 (push) Successful in 1s
/ CD > 發布專案 (push) Successful in 2s
Reviewed-on: #5
2026-03-25 14:22:14 +00:00
bcd0766c95 feat: 使用 bash 預設的指令 2026-03-25 22:21:43 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest 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 COPY entrypoint.sh /entrypoint.sh

View File

@@ -28,8 +28,8 @@ while true; do
break break
fi fi
# 休息 60 秒後重試 # 使用 bash 內建等待 60 秒,避免 sleep 指令不存在
/usr/bin/sleep 60 read -r -t 60 _ < /dev/null || true
done done
# 將狀態碼輸出到環境變數 # 將狀態碼輸出到環境變數