.gitlab-ci.yml 594 Bytes
Newer Older
Houtan Bastani's avatar
Houtan Bastani committed
1 2 3
variables:
  TERM: linux

Sébastien Villemot's avatar
Sébastien Villemot committed
4
build:
Houtan Bastani's avatar
Houtan Bastani committed
5 6 7
  stage: build
  tags:
    - jekyll
Sébastien Villemot's avatar
Sébastien Villemot committed
8 9 10 11 12 13 14 15 16 17 18
  variables:
    JEKYLL_ENV: production
  before_script:
    - export LC_ALL="C.UTF-8"
    - export LANG="en_US.UTF-8"
    - export LANGUAGE="en_US.UTF-8"
    - export GEM_HOME=$HOME/gems
    - export PATH=$HOME/gems/bin:$PATH
    - gem install jekyll
    - gem install bundler
    - bundle install
Houtan Bastani's avatar
Houtan Bastani committed
19 20 21 22 23 24
  script:
    - bundle exec jekyll build
  artifacts:
    paths:
    - _site

Sébastien Villemot's avatar
Sébastien Villemot committed
25 26 27 28 29 30 31 32
deploy:
  stage: deploy
  tags:
    - secure
  dependencies:
    - build
  script:
    - scp -r _site/* dynbot@eris.dynare.org:/srv/www.dynare.org/