Initial draft of plugin.

This commit is contained in:
Stephan Schnabel 2025-06-18 14:12:00 +02:00
parent acb6987200
commit 37f9f79454
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
15 changed files with 663 additions and 0 deletions

66
README.md Normal file
View file

@ -0,0 +1,66 @@
# Renovate Config Validatator Plugin
[![pulls](https://img.shields.io/docker/pulls/kokuwaio/renovate-config-validator)](https://hub.docker.com/repository/docker/kokuwaio/renovate-config-validator)
[![size](https://img.shields.io/docker/image-size/kokuwaio/renovate-config-validator)](https://hub.docker.com/repository/docker/kokuwaio/renovate-config-validator)
[![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://github.com/kokuwaio/renovate-config-validator/blob/main/Dockerfile)
[![license](https://img.shields.io/github/license/kokuwaio/renovate-config-validator)](https://github.com/kokuwaio/renovate-config-validator/blob/main/LICENSE)
[![issues](https://img.shields.io/github/issues/kokuwaio/renovate-config-validator)](https://github.com/kokuwaio/renovate-config-validator/issues)
A [Woodpecker CI](https://woodpecker-ci.org) plugin for [Renovate configuration validation](https://docs.renovatebot.com/config-validation/).
Also usable with Gitlab, Github or locally, see examples for usage.
## Features
- preconfigure Renovate parameters
- searches for Renovate files recursive
- runnable with local docker daemon
## Example
Woodpecker:
```yaml
steps:
renovate:
image: kokuwaio/renovate-config-validator
depends_on: []
settings:
strict: false
when:
event: pull_request
path: renovate.json
```
Gitlab:
```yaml
kokuwaio/renovate-config-validator:
stage: lint
needs: []
image: kokuwaio/renovate-config-validator
variables:
PLUGIN_STRICT: false
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes: [renovate.json]
```
CLI:
```bash
docker run --rm --volume=$(pwd):$(pwd):ro --workdir=$(pwd) kokuwaio/renovate-config-validator
```
## Settings
| Settings Name | Environment | Default | Description |
| -------------- | --------------- | ------- | -------------------------------------------------------------- |
| [strict](https://docs.renovatebot.com/config-validation/#strict-mode) | PLUGIN_STRICT | `true` | Fail if a scanned config needs migration. |
## Alternatives
| Image | Comment | amd64 | arm64 |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------- |:-----:|:-----:|
| [kokuwaio/renovate-config-validator](https://hub.docker.com/r/kokuwaio/renovate-config-validator) | Woodpecker plugin | [![size](https://img.shields.io/docker/image-size/kokuwaio/renovate-config-validator?arch=amd64&label=)](https://hub.docker.com/repository/docker/kokuwaio/renovate-config-validator) | [![size](https://img.shields.io/docker/image-size/kokuwaio/renovate-config-validator?arch=arm64&label=)](https://hub.docker.com/repository/docker/kokuwaio/renovate-config-validator) |
| [renovate/renovate](https://hub.docker.com/r/renovate/renovate) | not a Woodpecker plugin, official | [![size](https://img.shields.io/docker/image-size/renovate/renovate/latest?arch=amd64&label=)](https://hub.docker.com/repository/docker/renovate/renovate) | [![size](https://img.shields.io/docker/image-size/renovate/renovate/latest?arch=arm64&label=)](https://hub.docker.com/repository/docker/renovate/renovate) |
| [rwslinkman/renovatebot-config-validator](https://hub.docker.com/r/rwslinkman/renovatebot-config-validator) | not a Woodpecker plugin, outdated | [![size](https://img.shields.io/docker/image-size/rwslinkman/renovatebot-config-validator?arch=amd64&label=)](https://hub.docker.com/repository/docker/rwslinkman/renovatebot-config-validator) | [![size](https://img.shields.io/docker/image-size/rwslinkman/renovatebot-config-validator?arch=arm64&label=)](https://hub.docker.com/repository/docker/rwslinkman/renovatebot-config-validator) |