Hi there,
I’m trying to speed up our builds. I am adding the following folders to the .drone.yml
file :
cache:
mount:
- /drone/COMPOSER
When I run an :
ls /drone/COMPOSER
at the end of the build, the folder holds all cachable files. But at the beginning of the build, it is empty again. Am I missing something?
Thanks for your help.
And we can close this. The cache setting was not stored at the root level… My bad.
The cache setting is stored at the root level in drone 0.4
http://readme.drone.io/0.4/usage/caching/
cache:
mount:
- node_modules
- .git
build:
image: golang
commands:
- go build
- go test
In drone 0.5 there is no official caching. Instead, caching is delegated to plugins just like deployments, notifications, etc. This makes caching more customizable and powerful.
There are a number of community contributed plugins for caching. I recently discussed this on stackoverflow http://stackoverflow.com/questions/41412481/#answer-41418865