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