diff options
-rw-r--r-- | .gitlab-ci.yml | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a906598..75c9d07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,17 @@ ---- -image: ruby:latest - -stages: - - deploy - -variables: - JEKYLL_ENV: production - LANG: "C.UTF-8" - GIT_SUBMODULE_STRATEGY: recursive - +# The Docker image that will be used to build your app +image: ruby:2.6 +# Functions that should be executed before the build script is run before_script: - - apt-get update -qq && apt-get install -y -qq lftp rubygems - gem install bundler - bundle install - -deploy: - stage: deploy - only: - - master +pages: script: - - bundle update - - bundle exec jekyll build - - lftp -e "mirror -R -n -e _site $REM_CWD ; exit" -u "$REM_USER,$REM_PASWD" "$REM_SERVER" + - bundle exec jekyll build -d public artifacts: paths: - - _site + # The folder that contains the files to be exposed at the Page URL + - public + rules: + # This ensures that only pushes to the default branch will trigger + # a pages deploy + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH |