Initial draft of plugin.
All checks were successful
All checks were successful
This commit is contained in:
parent
acb6987200
commit
33b70ed5ae
16 changed files with 686 additions and 0 deletions
65
README.md
Normal file
65
README.md
Normal file
|
@ -0,0 +1,65 @@
|
|||
# `renovate-config-validatator` WoodpeckerCI Plugin
|
||||
|
||||
[](https://hub.docker.com/r/kokuwaio/renovate-config-validatator)
|
||||
[](https://hub.docker.com/r/kokuwaio/renovate-config-validatator)
|
||||
[](https://git.kokuwa.io/woodpecker/renovate-config-validatator/src/branch/main/Dockerfile)
|
||||
[](https://git.kokuwa.io/woodpecker/renovate-config-validatator/src/branch/main/LICENSE)
|
||||
[](https://git.kokuwa.io/woodpecker/renovate-config-validatator/pulls)
|
||||
[](https://git.kokuwa.io/woodpecker/renovate-config-validatator/issues)
|
||||
|
||||
A [WoodpeckerCI](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
|
||||
settings:
|
||||
strict: false
|
||||
when:
|
||||
event: pull_request
|
||||
path: renovate.json
|
||||
```
|
||||
|
||||
Gitlab:
|
||||
|
||||
```yaml
|
||||
kokuwaio/renovate-config-validator:
|
||||
stage: lint
|
||||
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 | [](https://hub.docker.com/r/kokuwaio/renovate-config-validator) | [](https://hub.docker.com/r/kokuwaio/renovate-config-validator) |
|
||||
| [renovate/renovate](https://hub.docker.com/r/renovate/renovate) | not a Woodpecker plugin, official | [](https://hub.docker.com/r/renovate/renovate) | [](https://hub.docker.com/r/renovate/renovate) |
|
||||
| [rwslinkman/renovatebot-config-validator](https://hub.docker.com/r/rwslinkman/renovatebot-config-validator) | not a Woodpecker plugin, outdated | [](https://hub.docker.com/r/rwslinkman/renovatebot-config-validator) | [](https://hub.docker.com/r/rwslinkman/renovatebot-config-validator) |
|
Loading…
Add table
Add a link
Reference in a new issue