fix(cleanup-release): 重新整理 release 清理流程與輸出格式
This commit is contained in:
+12
@@ -1,11 +1,23 @@
|
||||
# 檔案用途:建立執行 cleanup-release action 的 Node.js 容器映像
|
||||
# 更新日期:2026/07/11 21:02:25
|
||||
|
||||
# 允許在建置時指定 Node.js 版本標籤
|
||||
ARG NODE_VERSION=alpine
|
||||
|
||||
# 使用指定版本的 Node.js 基底映像
|
||||
FROM node:${NODE_VERSION}
|
||||
|
||||
# 設定 action 容器內的工作目錄
|
||||
WORKDIR /action
|
||||
|
||||
# 複製程式碼到容器內,讓 entrypoint 可以執行主程式
|
||||
COPY src/ /action/src/
|
||||
|
||||
# 複製入口腳本到容器內
|
||||
COPY entrypoint.sh /action/entrypoint.sh
|
||||
|
||||
# 確保入口腳本可執行
|
||||
RUN chmod +x /action/entrypoint.sh
|
||||
|
||||
# 容器啟動時固定執行入口腳本
|
||||
ENTRYPOINT ["/action/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user