image: ruby:2.3

# jekyll-coffeescript need a JS runtime...
before_script:
  - apt-get update
  - apt-get upgrade -y
  - apt-get install nodejs -y
  - gem install bundler --no-ri --no-rdoc
  - bundle install --jobs $(nproc)

pages:
  stage: deploy
  environment: production
  script:
    - bundle exec jekyll build -d public
  artifacts:
    paths:
      - public
  only:
    - master

image: ruby:2.3

variables:
  JEKYLL_ENV: gitlab

# jekyll-coffeescript need a JS runtime...
before_script:
  - apt-get update
  - apt-get upgrade -y
  - apt-get install nodejs -y
  - gem install bundler --no-ri --no-rdoc
  - bundle install --jobs $(nproc) --deployment --without development --full-index

pages:
  stage: deploy
  environment: production
  script:
    - bundle exec jekyll build -d public
  artifacts:
    paths:
      - public
  only:
    - master

Set JEKYLL_ENV so that jekyll.environment is not development
Set JEKYLL_ENV so that jekyll.environment is not development

Signed-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>
