From efac494063cf18b54acfba38a2f4af651d4b15ac Mon Sep 17 00:00:00 2001 From: Agent Date: Mon, 23 Mar 2026 13:37:39 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20node=5Fmodules=20?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.drone.yml b/.drone.yml index db0b40d..3987d42 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,11 @@ type: kubernetes name: build-and-deploy-dev +volumes: + - name: node-cache + claim: + name: node-cache-pvc + service_account_name: drone-builder-sa trigger: @@ -16,11 +21,17 @@ steps: image: ccr.ccs.tencentyun.com/violin/node:24-alpine commands: - npm install + volumes: + - name: node-cache + path: /root/.npm - name: dev-build image: ccr.ccs.tencentyun.com/violin/node:24-alpine commands: - npm run build:h5 + volumes: + - name: node-cache + path: /root/.npm - name: dev-build-image image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest @@ -49,6 +60,11 @@ type: kubernetes name: build-and-deploy-prod +volumes: + - name: node-cache + claim: + name: node-cache-pvc + trigger: event: - push @@ -60,11 +76,17 @@ steps: image: ccr.ccs.tencentyun.com/violin/node:24-alpine commands: - npm install + volumes: + - name: node-cache + path: /root/.npm - name: prod-build image: ccr.ccs.tencentyun.com/violin/node:24-alpine commands: - npm run build:h5 + volumes: + - name: node-cache + path: /root/.npm - name: prod-build-image image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest