diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2018-06-28 17:31:04 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2018-06-28 17:31:04 +0300 |
commit | d379996536a60a6b289a5b79b8b3cf43917973c5 (patch) | |
tree | d59f5cc4851f80818c6fa481011327809c178c0e | |
parent | 9c7b53e1766f67531413470f6779a17c94267d43 (diff) |
Adding CI
-rw-r--r-- | .gitlab-ci.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml new file mode 100644 index 0000000..6d6c226 --- /dev/null +++ b/.gitlab-ci.yaml @@ -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 |