From eb571717002566bc0215e50250f3f1dfc4c36e5e Mon Sep 17 00:00:00 2001 From: mol Date: Thu, 14 Dec 2023 10:01:19 +0800 Subject: [PATCH] test --- .drone.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 957556a..fc32923 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,6 +30,7 @@ steps: # 定义管道的执行步骤 restore: true mount: - ./node_modules + - ./nugetpackages - name: build-image image: plugins/docker @@ -44,6 +45,18 @@ steps: # 定义管道的执行步骤 registry: https://git.liliyamol.cn:8081 repo: git.liliyamol.cn:8081/mol/mol-robot + - name: rebuild cache # 构建缓存 + image: drillster/drone-volume-cache + depends_on: [build-image] + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./node_modules + - ./nugetpackages + --- kind: pipeline # 定义一个管道 type: docker # 当前管道的类型 @@ -82,4 +95,4 @@ steps: volumes: - name: cache host: - path: /tmp/npm/cache \ No newline at end of file + path: /tmp/cache \ No newline at end of file