--- 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