Drone plugins > Volume Cache
Volume Cache
by drillster
The volume cache plugin can be used to preserve files and directories between builds.
Example
kind: pipeline
name: default
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
host:
path: /tmp/cache
Properties
restore
booleanoptionalRestore cache from previous build.
Default: false
rebuild
booleanoptionalRebuild cache.
Default: false
mount
arrayoptionallist of folders or files to cache
Default: none