From e905202ec57583d8bca7bdfa322f5a3cd4a066b2 Mon Sep 17 00:00:00 2001 From: Antenore Gatta Date: Thu, 28 Jun 2018 14:49:15 +0000 Subject: Add .gitlab-ci.yml --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3