From 84f8d279eaebdf173dee240f0c589ecac07ab0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=B5=A9?= Date: Thu, 7 Jul 2022 08:05:20 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b80be37d..d0962fd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,24 +15,6 @@ cache: before_script: - export CNUI_TAG=$(date +%Y%m%d%H%M%S) -generate_git-log: - stage: gen_git-log - script: - - if (( `grep git-log.html ./public/index.html | wc -l` == 0 )); then sed -i 's++更新记录\n+g' ./public/index.html; echo "添加更新记录链接"; fi; - - echo "最近的100个提交记录" - - echo "
" > ./public/git-log.html
-    - "git log -100 --pretty=format:'%ad : %s' >> ./public/git-log.html"
-    - echo "
" >> ./public/git-log.html - - echo "处理 git-log.html 结束" - artifacts: - paths: - - public/index.html - - public/git-log.html - only: - - dev - tags: - - GN-XXG-Server - build_project: stage: build_project script: @@ -41,7 +23,7 @@ build_project: - echo "npm run build" - npm run build only: - - dev + - dev_copy - tags tags: - GN-XXG-Server @@ -57,7 +39,7 @@ build_image: - sudo docker push 192.168.40.153:9080/cyber-narrator/cn-ui:$CNUI_TAG when: on_success only: - - dev + - dev_copy tags: - GN-XXG-Server