docs(calculate-version): 重整 action 與 workflow 文件
CI / 1. BUILD (pull_request) Successful in 1s
CI / 2. TEST (pull_request) Successful in 3s
CI / 3. RESULT (pull_request) Successful in 2s

This commit is contained in:
2026-07-11 13:15:21 +00:00
parent c8fe088e42
commit fa4f7cd50b
7 changed files with 155 additions and 33 deletions
+9 -2
View File
@@ -1,15 +1,22 @@
# --------------------------------------------------
# 用途:定義 calculate-version action 的 Docker 執行環境。
# 更新日期:2026/07/11 17:44:33Asia/Taipei
# 用途:定義 calculate-version action 的 Docker 執行環境與啟動入口
# 更新日期:2026/07/11 21:08:44Asia/Taipei
# --------------------------------------------------
# 使用 Node LTS Alpine 映像,兼顧 Node 執行環境與較小的映像體積。
FROM node:lts-alpine
# 將工作目錄切換到 /action,後續複製與執行都以此為基準。
WORKDIR /action
# 複製 action 的主程式來源到容器內,供 entrypoint 執行。
COPY src/ /action/src/
# 複製 entrypoint 腳本到容器內,作為啟動入口。
COPY entrypoint.sh /action/entrypoint.sh
# 賦予 entrypoint 可執行權限,否則容器啟動時無法直接執行。
RUN chmod +x /action/entrypoint.sh
# 指定容器啟動時直接執行 entrypoint 腳本。
ENTRYPOINT ["/action/entrypoint.sh"]