I’m trying to figure out what exactly is persistent between builds when using the docker-runner.
Is the docker-image always clean when starting a new build?
Yarn is an alternative for NPM and makes it safe to use a cache-directory when pulling dependencies. As pulling all dependencies is a huge part of my CI-tests (5 out of 6 minutes), I would love to use a global cache for that.
Even different repos are okay to use the same runners global cache.
What I tried was to use volumes for that, but that does not work for some reason… I was also wondering if there is a more clever way to do that (i.e. one that does not depend on special runner-configuration). If I am not mistaken it is possible to link one docker-image to another one. Maybe a yarn-cache-container would be possible?
That’s my current config:
concurrent = 1 check_interval = 0 [[runners]] name = "sven.macbook" url = "https://git.XXX/" token = "XXX" executor = "docker" [runners.docker] tls_verify = false image = "ruby:2.1" privileged = false disable_cache = false volumes = [ "/cache", "/Users/XXX/.ssh:/root/.ssh:ro", "/Users/XXX/Library/Caches/Yarn:/root/.cache/yarn", "/Users/XXX/.cache/bower:/root/.cache/bower" ] [runners.cache]