We use caching for .git and go/node dependencies. I wish there was a standard plugin which allows local caching thru docker volume mounting as SFTP option adds to deployment complexity.
I’ve created a volume based caching plugin for Drone 0.5, drone-volume-cache.
Below the surface it uses rsync to restore and rebuild the cache, making these processes quite speedy.
I’ve been using it at our company to cache Maven artifacts, Node.js dependencies, Bower dependencies, and Docker image layers, and I’m very satisfied with its performance.
The obvious downside of this approach is that you’re required to enable the Trusted flag for the repository, since the plugin uses a mounted volume. It’s probably a bad idea to enable this flag for a public repository.
I submitted a PR to add it to the official list of plugins.