.gitlab-ci.yml 414 Bytes
Newer Older
1

David Haynes's avatar
David Haynes committed
2 3 4 5 6 7 8 9 10 11 12 13
image: ruby:2.3

variables:
  JEKYLL_ENV: production

before_script:
  - cd srctweb/
  - bundle install

build:
  stage: build
  script:
14
  - bundle exec jekyll build --trace -d '../build'
David Haynes's avatar
David Haynes committed
15 16
  artifacts:
    paths:
Michael T Bailey's avatar
Michael T Bailey committed
17 18 19 20 21 22 23 24 25 26
    - build
prod_deploy:
  stage: build
  script:
    - cd /srv/srctweb-jekyll/ && bundle exec jekyll build --trace -d '/srv/srctweb-jekyll/_site'
  only:
    - master
  tags:
    - master
    - builds