From 80831d1a7a04f93990af3c818e3ed57c72c7d50c Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 2 Apr 2025 03:10:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99812a8..f2d82c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: node:latest + image: node:13.11.0 before_script: - echo '====== 准备构建中 =========' @@ -16,20 +16,8 @@ job_deploy: - staryEvo before_script: - echo '开始发布' - - echo '开始发布' - - docker info # 添加 Docker 环境验证 - - node -v # 验证 Node.js 版本 script: - # 添加镜像拉取重试逻辑 - - retry_count=0 - - until [ "$retry_count" -ge 3 ]; do - docker pull node:latest && break; - retry_count=$((retry_count+1)); - echo "镜像拉取失败,重试 $retry_count/3"; - sleep 5; - done - - - cd Assets/00.StaryEvo + - cd Assets/01.CodeChecker # 获取当前版本 - CURRENT_VERSION=$(node -p "require('./package.json').version") # - echo " ProjectID ${CI_SERVER_HOST}"