diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-11-14 18:06:22 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-11-14 18:06:22 +0300 |
commit | e653a50ffe8b1766b5326467e75943eb2657ade7 (patch) | |
tree | 9edd7fb178497261e6f1ee07e7303755062559ac | |
parent | f031d226bf84beab16e594f7e196b344d01140d3 (diff) |
Added pages
-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 |