Files
lespiedsdanslecode/.gitlab-ci.yml
T
Yannick Francois 09dc1149dd pas de sudo ici
2019-02-24 22:53:17 +01:00

26 lines
658 B
YAML

image: ruby:2.3
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
- curl https://gitlab.com/carnet-de-notes/sous-le-capot/raw/master/_config.yml > _configGl.yml
- curl https://gitlab.com/carnet-de-notes/sous-le-capot/raw/master/Gemfile > Gemfile
- bundle install
pages:
stage: deploy
variables:
BASEURL: '/$CI_PROJECT_NAME'
webroot: .
script:
- if [ -z "$webroot" ]; then echo "Need to set webroot" && exit 1; fi
- rsync -rv ./ $webroot --exclude '.git' --exclude '.gitlab-ci.yml' --exclude '.gitignore' --delete
- chown user:group $webroot -R
artifacts:
paths:
- public
only:
- master