blob: 81f7dd92c68b514fbee8a66d5f211790213c4e82 (
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
|
---
image: ruby:latest
stages:
- deploy
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
deploy:
stage: deploy
only:
- master
script:
- bundle exec jekyll build
- lftp -e "mirror -R -n -e _site $REM_CWD ; exit" -u "$REM_USER,$REM_PASWD" "$REM_SERVER"
artifacts:
paths:
- _site
|