From 8bdce2d917057263fbe0774e05904c7dea9baa29 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 07:50:54 +0000 Subject: [PATCH 1/6] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index befbe90..cde36cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ default: image: docker.xiaogenban1993.com/node:18.21.1 - pull_policy: always # 强制每次都重新拉取镜像 + # 强制每次都重新拉取镜像 before_script: - echo '====== 准备构建中 =========' From bf42119d7fc86d342cd26ba2a2a5aa6db80ddbe0 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 07:54:38 +0000 Subject: [PATCH 2/6] =?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 | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cde36cd..c5e83a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,7 @@ job_install: stage: install before_script: - echo '安装依赖' + - apt-get update && apt-get install -y npm # Add npm installation script: - cd Assets/02.InformationSave - echo " registry=http://192.168.31.100:8418/api/packages/unity-registry/npm" > .npmrc From 6bc0a7fecaaaba118f782ac2ffb9dd528987ac8d Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 07:56:46 +0000 Subject: [PATCH 3/6] =?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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5e83a1..64a4805 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,8 @@ job_install: stage: install before_script: - echo '安装依赖' - - apt-get update && apt-get install -y npm # Add npm installation + - sudo apt-get update -y || true + - sudo apt-get install -y --no-install-recommends npm # Add sudo script: - cd Assets/02.InformationSave - echo " registry=http://192.168.31.100:8418/api/packages/unity-registry/npm" > .npmrc From 332aa911ce695509ecf287a80084ba5f454f909d Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 07:57:24 +0000 Subject: [PATCH 4/6] =?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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64a4805..0fad8b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,8 +18,8 @@ job_install: stage: install before_script: - echo '安装依赖' - - sudo apt-get update -y || true - - sudo apt-get install -y --no-install-recommends npm # Add sudo + - apt-get update -y || true + - apt-get install -y --no-install-recommends npm # Add sudo script: - cd Assets/02.InformationSave - echo " registry=http://192.168.31.100:8418/api/packages/unity-registry/npm" > .npmrc From e858867e293e8c0f17f2bcf92129a0bd7b67dd4e Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 08:09:01 +0000 Subject: [PATCH 5/6] =?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, 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fad8b3..8d95668 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,25 +7,9 @@ before_script: stages: - - install - deploy -# 安装依赖 -job_install: - only: - - master - stage: install - before_script: - - echo '安装依赖' - - apt-get update -y || true - - apt-get install -y --no-install-recommends npm # Add sudo - script: - - cd Assets/02.InformationSave - - echo " registry=http://192.168.31.100:8418/api/packages/unity-registry/npm" > .npmrc - - echo "//192.168.31.100:8418/api/packages/unity-registry/:_authToken=7a502f73368672741accbd12fdf268909b1dca0f" >> .npmrc - - retry: 0 # 发布 From f491dc5f3689f05ec6071271815c8970e065dc62 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Mar 2025 08:33:23 +0000 Subject: [PATCH 6/6] =?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 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d95668..278102e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,28 @@ default: - image: docker.xiaogenban1993.com/node:18.21.1 - # 强制每次都重新拉取镜像 + image: docker.xiaogenban1993.com/node:13.11.0 before_script: - echo '====== 准备构建中 =========' stages: + - install - deploy +# 安装依赖 +job_install: + only: + - master + stage: install + before_script: + - echo '安装依赖' + script: + - cd Assets/02.InformationSave + - echo " registry=http://192.168.31.100:8418/api/packages/unity-registry/npm" > .npmrc + - echo "//192.168.31.100:8418/api/packages/unity-registry/:_authToken=7a502f73368672741accbd12fdf268909b1dca0f" >> .npmrc + + retry: 0 # 发布 @@ -30,3 +43,4 @@ job_deploy: after_script: - echo "====== 发布完成 =========" +