diff --git a/.devops/构建流水线.yml b/.devops/构建流水线.yml index 8353ff7..c0700ca 100644 --- a/.devops/构建流水线.yml +++ b/.devops/构建流水线.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 1e18e0a..f1e9399 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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