pipeline:
  style:
    image: ruby:3.0
    commands:
      - 'gem install rake'
      - 'bundle config set --local path "vendor/bundle"'
      - 'bundle install'
      - 'rake test:rubocop'

  gitea_release:
    image: plugins/gitea-release
    settings:
      api_key:
        from_secret: gitea_api_key
      base_url: https://git.metaunix.net
      title: "${CI_COMMIT_TAG}"
    when:
      event: tag