fix: 移除无效的 BUILD_DATE 缓存破坏,确保流水线构建使用最新代码

This commit is contained in:
刘焱 2026-05-13 16:32:46 +08:00
parent c72985df89
commit 80251304b3
2 changed files with 2 additions and 5 deletions

View File

@ -44,7 +44,7 @@ workflow:
docker_build_path: git_clone_0.git_path
workspace: git_clone_0.git_path
image_push: true
build_args: '""'
build_args: '"BUILD_DATE=$(date +%s)"'
needs:
- git_clone_0
- ref: ssh_cmd_0
@ -60,7 +60,7 @@ workflow:
&& mkdir -p /root/help_center_data
&& docker run -d -p 3000:3000 --env-file /root/.help_center_env
-v /root/help_center_data:/gitlink_help_center/data
--name help_center
--name help_center --restart unless-stopped
crpi-kn808rklyotb8pg1.cn-hangzhou.personal.cr.aliyuncs.com/gitlink_nudter/help_center:latest"'
needs:
- docker_image_build_0

View File

@ -3,9 +3,6 @@ LABEL maintainer="yuankaifneg <2894340009@qq.com>"
WORKDIR /gitlink_help_center
ARG BUILD_DATE
RUN echo "Build date: ${BUILD_DATE}" > /dev/null
COPY package.json package-lock.json ./
RUN npm ci