March 16, 2018, 3:15pm
I’ve read the docs but cannot find a full example yml file of how to configure Drone for caching.
I have the following:
- "yarn bootstrap"
- "yarn build"
- "yarn test"
But get the error “Failed to unmarshal Stringorslice”
Can someone please post a working config?
Caching is handled by plugins.
Here is an example of a plugin that will restore and update a cache using s3 / minio / anything compatible with the s3 protocol:
Here is an example of a plugin that will cache to a local volume on the host machine:
Here is a plugin that caches to a remote server using sftp:
And you always have the option to write your own custom plugins, if none of the above caching plugins meet your needs. We have a library available to help develop caching plugins. See