.gitlab-ci.yml 533 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
    - build
prod_deploy:
  stage: build
  script:
Michael T Bailey's avatar
Michael T Bailey committed
21 22
    - cd /srv/srctweb-jekyll/srctweb && git pull && cd ../
    - mv /srv/srctweb-jekyll/srctweb/* /srv/srctweb-jekyll/
Michael T Bailey's avatar
Michael T Bailey committed
23 24 25 26 27 28
    - cd /srv/srctweb-jekyll/ && bundle exec jekyll build --trace -d '/srv/srctweb-jekyll/_site'
  only:
    - master
  tags:
    - master
    - builds