From 1d8d60ccaa36136bdcda29283a3c1068bfae1803 Mon Sep 17 00:00:00 2001 From: "n72595987@gmail.com" Date: Sat, 29 Nov 2025 17:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Drone=20CI=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=9A=E7=A7=BB=E9=99=A4=20host=20volumes=20?= =?UTF-8?q?=E4=BB=A5=E8=A7=A3=E5=86=B3=20untrusted=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 npm-cache volume 挂载 - 同一构建内的步骤仍可共享 node_modules - 使用国内镜像加速依赖下载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .drone.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index e29a117..76ca87e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,9 +13,6 @@ steps: # 步骤1:安装依赖 - name: 安装依赖 image: node:18-alpine - volumes: - - name: npm-cache - path: /root/.npm commands: - echo "开始安装 npm 依赖..." - npm install --registry=https://registry.npmmirror.com @@ -63,9 +60,3 @@ steps: - sleep 5 - curl -f http://154.30.6.21:2888 || exit 1 - echo "✅ 前端访问正常" - -# 挂载卷(缓存 npm 依赖) -volumes: - - name: npm-cache - host: - path: /data/drone-cache/npm