summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-11-17 09:57:04 +0100
committerAzul <azul@riseup.net>2016-11-17 12:37:50 +0100
commit3077e933cbe0d8d7915e72242423fb42fa60609f (patch)
treeefe6b47305364e94136df22ecf6e4dda59132305 /.gitlab-ci.yml
parentba81242f123df67ec8cfa8f3db5f20daeabc90a5 (diff)
ci: share cache for gems between branches and jobs
bundler and rubygems should be robust enough to share one dir in different branches. This way gems can be reused. If new versions are required they will just be added to the shared cache.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 45b5fd6..232ebcb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,8 +11,9 @@ services:
# Cache gems in between builds
cache:
+ key: shared
paths:
- - vendor/
+ - vendor/ruby
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres