From 62e2d0f8356d4b8b91bab34465ec805406b4c546 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 18 Aug 2020 23:43:31 +0100 Subject: [PATCH] Improve GitLab Pages build speed --- .gitlab-ci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68a41de..be6ed38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,29 +1,32 @@ -image: ruby:2.6 +image: jekyll/jekyll:4 variables: JEKYLL_ENV: production LC_ALL: C.UTF-8 before_script: - - gem install bundler jekyll - - bundle install + - rm Gemfile.lock test: stage: test + interruptible: true script: - - bundle exec jekyll build -d test + - bundle exec jekyll build -d test artifacts: paths: - - test + - test except: - - master + - master pages: stage: deploy + interruptible: true + before_script: + - rm Gemfile.lock script: - - bundle exec jekyll build -d public + - bundle exec jekyll build -d public artifacts: paths: - - public + - public only: - - master + - master