Everytime when I build, drone will download all dependencies start anew, how can I avoid this?
1 Like
You can use one of the cache plugins (or create your own) to cache dependencies between builds. Here are some cache plugins you can consider using:
- http://plugins.drone.io/drillster/drone-volume-cache/
- https://github.com/drone-plugins/drone-s3-cache
- https://github.com/drone-plugins/drone-volume-cache
I recommend starting with http://plugins.drone.io/drillster/drone-volume-cache/
Thanks a lot. And I have another question, when I use plugin of docker to build, I find that the download speed of image is very slow although I set the mirror registry.
the docker plugin uses plain old docker build docker build
. So if docker build
is slow, you probably need to use the docker support forums to troubleshoot, since they are the real experts.
ok,I see, Thanks a lot.