[TASK] add cache to drone
This commit is contained in:
parent
663a090b3f
commit
7c8cc33d1d
29
.drone.yml
29
.drone.yml
@ -2,7 +2,18 @@ kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
steps:
|
||||
- name: Restore Cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./dist
|
||||
|
||||
- name: Build DockerImage
|
||||
image: docker
|
||||
volumes:
|
||||
@ -37,7 +48,21 @@ steps:
|
||||
when:
|
||||
event: tag
|
||||
|
||||
- name: Rebuild Cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./dist
|
||||
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
path: /var/run/docker.sock
|
||||
- name: cache
|
||||
host:
|
||||
path: /volume2/docker2/dronecache
|
||||
Loading…
x
Reference in New Issue
Block a user