diff --git a/jekyll/TLLA/gitlab-ci-ruby-edition.yml b/jekyll/TLLA/gitlab-ci-edition.yml similarity index 100% rename from jekyll/TLLA/gitlab-ci-ruby-edition.yml rename to jekyll/TLLA/gitlab-ci-edition.yml diff --git a/jekyll/TLLA/gitlab-ci-ruby_edition.yml b/jekyll/TLLA/gitlab-ci-ruby_edition.yml deleted file mode 100644 index 913475a89358e14c4f62a7dc59501a2767ac81f5..0000000000000000000000000000000000000000 --- a/jekyll/TLLA/gitlab-ci-ruby_edition.yml +++ /dev/null @@ -1,79 +0,0 @@ -stages: - - build - - deploy - -variables: - LC_ALL: C.UTF-8 - BUILD_DIR: public/ - -cache: - paths: - - web/vendor/bundle/ - -.build: - image: ruby:3.2 - stage: build - before_script: - - apt-get update -qy - - gem install bundler - - cd web/ - - bundle install --path vendor/bundle - script: - - bundle exec jekyll build -d $BUILD_DIR --config $CONFIG - artifacts: - paths: - - web/$BUILD_DIR - -.deploy: - image: alpine:latest - stage: deploy - variables: - before_script: - - apt-get update -qy - - apt-get install -y lftp - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - ssh-keyscan $SFTP_HOST >> ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - cd web/ - script: - - lftp -e "set sftp:auto-confirm yes; - open sftp://$SFTP_HOST; - user $SFTP_USER $SFTP_PASSWORD; - mirror --exclude-glob .git* - --exclude .git/ - --reverse - --verbose - --delete - $BUILD_DIR - $DEPLOY_DIR; - bye" - -build.dev: - extends: .build - variables: - CONFIG: _config.yml,_config-dev.yml - only: - - web.dev - -build.prod: - extends: .build - variables: - CONFIG: _config.yml - JEKYLL_ENV: production - only: - - web.prod - -deploy.dev: - extends: .deploy - variables: - DEPLOY_DIR: $DEV_DEPLOY_DIR - only: - - web.dev - -deploy.prod: - extends: .deploy - variables: - DEPLOY_DIR: $PROD_DEPLOY_DIR - only: - - web.prod