A Drone CI plugin for caching data.
[A-Za-z][A-Za-z0-9_-]+kind: pipeline
steps:
# find cached node_modules by the file 'yarn.lock'
- name: load-yarn-cache
image: sinlead/drone-cache:1.0.0
settings:
action: load
key: yarn.lock
mount: node_modules
prefix: yarn-modules-v1
volumes:
- name: cache
path: /cache
- name: yarn-install
image: node:11-alpine
commands:
- yarn install
# save installed node_modules to cache
- name: save-yarn-cache
image: sinlead/drone-cache:1.0.0
settings:
action: save
key: yarn.lock
mount: node_modules
prefix: yarn-modules-v1
volumes:
- name: cache
path: /cache
# the cache storage at your host
volumes:
- name: cache
host:
path: /tmp/cache
Content type
Image
Digest
Size
22.2 MB
Last updated
over 6 years ago
docker pull sinlead/drone-cache