.gitlab-ci.yml 569 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:
David Haynes's avatar
David Haynes committed
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
    - build
prod_deploy:
Michael T Bailey's avatar
Michael T Bailey committed
19
  stage: deploy
Michael T Bailey's avatar
Michael T Bailey committed
20
  script:
Michael T Bailey's avatar
Michael T Bailey committed
21
    - export GIT_SSL_NO_VERIFY=true && cd /srv/srctweb-jekyll/source && git pull && cd ../
22
    - cp -rf /srv/srctweb-jekyll/source/* /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