diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2018-06-28 17:49:15 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2018-06-28 17:49:15 +0300 |
commit | e905202ec57583d8bca7bdfa322f5a3cd4a066b2 (patch) | |
tree | 3fc9d44c5d592cd6a8e3eb24569de5d59fe07dce /.gitlab-ci.yml | |
parent | 31cebe4f378b1c9c083318ec97f891190ec86306 (diff) |
Add .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6d6c226 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: ruby:2.4.4 + +cache: + paths: + - vendor/ + +before_script: + - gem install bundler + - bundle install --path vendor + +build: + stage: build + script: + - JEKYLL_ENV=production bundle exec jekyll build + artifacts: + paths: + - _site + +vars: + type: test + script: + - 'export REM_SERVER="$(echo "$REM_SERVER")" > rem_vars' + - 'export REM_USER="$(echo "$REM_USER")" >> rem_vars' + - 'export REM_PASWD="$(echo "$REM_PASWD")" >> rem_vars' + - 'export REM_CWD="$(echo "$REM_CWD")" >> rem_vars' + artifacts: + paths: + - rem_vars + only: + - triggers + +deploy: + stage: deploy + script: + - source rem_vars + - lftp -c "mirror -R -n -e _site ${REM_CWD}" -u "${REM_USER},${REM_PASWD}" "${REM_SERVER}" + artifacts: + paths: + - _site |