Improve GitLab Pages build speed

master
rubenwardy 2020-08-18 23:43:31 +01:00
parent acdc71b34f
commit 62e2d0f835
1 changed files with 12 additions and 9 deletions

View File

@ -1,29 +1,32 @@
image: ruby:2.6 image: jekyll/jekyll:4
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
before_script: before_script:
- gem install bundler jekyll - rm Gemfile.lock
- bundle install
test: test:
stage: test stage: test
interruptible: true
script: script:
- bundle exec jekyll build -d test - bundle exec jekyll build -d test
artifacts: artifacts:
paths: paths:
- test - test
except: except:
- master - master
pages: pages:
stage: deploy stage: deploy
interruptible: true
before_script:
- rm Gemfile.lock
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master