diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-11-15 03:06:32 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-11-15 03:06:32 +0300 |
commit | 54b4f2cd68213c02053e028766ade1b87e3b70f9 (patch) | |
tree | 7c4fec56057169f7ff1953fd3a6986cfe790b608 | |
parent | 7c4f17a09e647588a29bb0a2f319c2e2ebe44c52 (diff) |
Adding cache
-rw-r--r-- | .gitlab-ci.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4917075..2f76e44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,12 @@ # The Docker image that will be used to build your app image: ruby:latest +# Cache gems in between builds +cache: + key: $CI_COMMIT_REF_SLUG + paths: + - vendor/ruby + #Variables variables: JEKYLL_ENV: production @@ -11,7 +17,8 @@ variables: before_script: - apt-get update -qq && apt-get install -y -qq rubygems - gem install bundler - - bundle install + - bundle config set --local path 'vendor/ruby' + - bundle install -j $(nproc) pages: script: |