Unverified Commit c625f8fb authored by Richard Perry's avatar Richard Perry
Browse files

Tweaked gitlab-ci file for caching and artifacts

parent ed9d0467
# This file is a template, and might need editing before it works on your project.
# Template project: https://gitlab.com/pages/jekyll # Template project: https://gitlab.com/pages/jekyll
# Docs: https://docs.gitlab.com/ce/pages/ # Docs: https://docs.gitlab.com/ce/pages/
image: ruby:2.3 image: ruby:2.3
# Define the environment variables
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
# Add bundle cache to 'vendor' & untracked files for speeding up builds
untracked: true
- vendor/
# 'Bundle' all the required gems for the project
before_script: before_script:
- bundle install - bundle install --path vendor
# Build and deploy the site
pages: pages:
stage: deploy stage: deploy
environment: environment:
...@@ -18,7 +26,8 @@ pages: ...@@ -18,7 +26,8 @@ pages:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
artifacts: artifacts:
paths: paths:
- public - public/
when: always
only: only:
- pages - pages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment