Dependencies cache between builds


#1

My project has a lot of external dependencies (composer plus npm packages).
A couple of steps is about downloading it.

Is there a way to cache specific folders between builds on the PRO version?
e.g. node_modules, vendor, bower_components

I know that I can cache docker images, but it seems like a overkill to build a image with this files, so a simple folder cache would be enough for these cases… I’ve found nothing on the docs.

Thanks :wink:


#2

Also looking at the same issue a few times. I think there’s only Docker layer cache unless you want to sync it elswehere yourself. One interesting way is on https://medium.com/@fbzga/how-to-cache-bundle-install-with-docker-7bed453a5800#.hc74xvdu6 then use the cached: true directive in codeship-services.yml.