Commit 81a0140e authored by Florian Greinacher's avatar Florian Greinacher Committed by Michael Kriese
Browse files

feat: add renovate-config-validator template (renovate-bot/renovate-runner!1665)

Closes #80
parent 16a6f947
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
include: '/templates/renovate.gitlab-ci.yml'
include:
  - '/templates/renovate.gitlab-ci.yml'
  - '/templates/renovate-config-validator.gitlab-ci.yml'

variables:
  RENOVATE_GIT_AUTHOR: Renovate Bot <bot@renovateapp.com>
+12 −0
Original line number Diff line number Diff line
@@ -113,3 +113,15 @@ Onboarding and autodiscover is disabled by default for security reasons.
For renovate configuration basics checkout the official self-hosting [docs](https://docs.renovatebot.com/self-hosted-configuration/).

For other self-hosted GitLab samples you can check the [Renovate Gitlab Configuration](https://github.com/renovatebot/docker-renovate/blob/HEAD/docs/gitlab.md).

## Validate Renovate configuration

This project also provides a template for validating Renovate configuration in downstream repositories.

```yaml
include:
    - project: 'renovate-bot/renovate-runner'
      file: '/templates/renovate-config-validator.gitlab-ci.yml'
```

This template will add a `renovate-config-validator` job to the pipeline that ensures the Renovate configuration is valid.
+9 −0
Original line number Diff line number Diff line
variables:
  RENOVATE_ENDPOINT: $CI_API_V4_URL
  RENOVATE_PLATFORM: gitlab
  CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:35.71.0-slim@sha256:16346a0e184a8972e54a5934b3b098b409021558c48a06d227583fc922d33ba3

renovate-config-validator:
  stage: test
  image: $CI_RENOVATE_IMAGE
  script: renovate-config-validator