This commit is contained in:
15
.drone.yml
15
.drone.yml
@ -30,6 +30,7 @@ steps: # 定义管道的执行步骤
|
|||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
|
- ./nugetpackages
|
||||||
|
|
||||||
- name: build-image
|
- name: build-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -44,6 +45,18 @@ steps: # 定义管道的执行步骤
|
|||||||
registry: https://git.liliyamol.cn:8081
|
registry: https://git.liliyamol.cn:8081
|
||||||
repo: git.liliyamol.cn:8081/mol/mol-robot
|
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 # 定义一个管道
|
kind: pipeline # 定义一个管道
|
||||||
type: docker # 当前管道的类型
|
type: docker # 当前管道的类型
|
||||||
@ -82,4 +95,4 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/npm/cache
|
path: /tmp/cache
|
Reference in New Issue
Block a user