7 Commits

Author SHA1 Message Date
Jeffery
b6dabdbbf8 feat: 安裝 bash 套件 2026-03-20 16:05:32 +08:00
Jeffery
ed3de05b12 feat: 移除 entrypoint 的 /r 2026-03-20 16:03:06 +08:00
Jeffery
66b143f3f7 test: 修改編碼嘗試執行腳本 2026-03-20 15:58:58 +08:00
Jeffery
d3abfab99a test: 改用 ubuntu 嘗試執行腳本 2026-03-20 15:56:46 +08:00
Jeffery
98cee8fc65 feat: 安裝 bash 工具用來執行腳本 2026-03-20 15:54:14 +08:00
Jeffery
0259dbe114 feat: 強制指定計算版本號的工具版本 2026-03-20 15:52:20 +08:00
Jeffery
eb67824f3e feat: 使用最新的工具計算版本號 2026-03-20 15:48:10 +08:00
2 changed files with 5 additions and 9 deletions

View File

@@ -11,15 +11,11 @@ jobs:
steps:
- name: 計算版本號
id: version
uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
with:
gitea-server: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
token: ${{ secrets.GITEA_TOKEN }}
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.3
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v${{ steps.version.outputs.VERSION }}"
tag_name: "v${{ steps.version.outputs.version }}"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:

View File

@@ -1,11 +1,11 @@
FROM alpine:latest
# 更新並安裝必要的工具後清理暫存檔案以減小映像檔大小
# 更新並安裝必要的工具
RUN apk update \
&& apk add --no-cache curl jq
&& apk add --no-cache bash curl jq
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh && chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]