調整:第三方 action 與工具的版本也從 Gitea 變數取得
ci / test (pull_request) Failing after 21s

This commit is contained in:
bot
2026-11-05 04:44:33 +00:00
parent 9cbdbb9517
commit 52fe8b1f18
5 changed files with 23 additions and 8 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# shellcheck 固定 v0.10.0(從官方釋出檔下載,不用 apt 的舊版)
# shellcheck 本身不放進映像檔:版本由呼叫端的 Gitea 變數指定,entrypoint.sh 依版本下載(Docker 建置讀不到 Gitea 變數)
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl xz-utils \
&& curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz | tar -xJ -C /usr/local/bin --strip-components=1 shellcheck-v0.10.0/shellcheck \
&& apt-get purge -y -qq curl xz-utils && apt-get autoremove -y -qq && rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
COPY . /action
ENTRYPOINT ["/bin/bash", "/action/entrypoint.sh"]