blob: 45a28b898459157a6f0448ad4471cc3694ec68f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
image: ruby:latest
stages:
- deploy
cache:
paths:
- vendor/
variables:
JEKYLL_ENV: production
LANG: "C.UTF-8"
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get update -qq && apt-get install -y -qq lftp rubygems
- gem install bundler
- bundle install --path vendor
deploy:
stage: deploy
only:
- master
script:
- JEKYLL_ENV=production bundle exec jekyll build
- lftp -e "mirror -R -n -e _site $REM_CWD ; exit" -u "$REM_USER,$REM_PASWD" "$REM_SERVER"
artifacts:
paths:
- _site
|