Shared Renovate presets for kickr projects.
They serve three purposes:
- Keep
kickrtemplates up to date: Versions in the CLI templates (.tmplfiles) are updated here, at the source. - Delegate industrialization updates to
kickr: Projects generated bykickrget their CI, pre-commit and other layout files from the templates. Renovate updates on those files are disabled, so they only change through akickrlayout update. - Provide a base for dependency updates: Updates are grouped to avoid a flood of pull requests, with opinionated disables and automerge rules for production dependencies.
All presets live under configs.
Extend default.json plus the presets matching the ecosystems of the repository in its renovate.json.
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>kickr-dev/renovate//configs/renovate/default.json",
"github>kickr-dev/renovate//configs/renovate/gitlab-ci.json",
"github>kickr-dev/renovate//configs/renovate/gomod.json"
]
}Options set in the repository itself take precedence over the extended presets.
| Preset | Description |
|---|---|
| default | Base policy, grouping, vulnerability alerts, lockfile maintenance and regex managers |
| docker | Groups Docker updates and tracks ENV versions in Dockerfiles |
| github-actions | Tracks uses versions and semantic-release plugins in GitHub Actions files |
| gitlab-ci | Tracks images, ref, component and remote versions in GitLab CI/CD files |
| gomod | Go modules grouping, tidy, go generate and automerge, without go directive bumps |
| hugo | Hugo modules and themes updates, with hugo mod tidy |
| kickr | Disables regex managers on files templated by kickr |
| pre-commit | Groups pre-commit updates and tracks rev versions in template files |
| terraform | Terraform and OpenTofu grouping and docker image references in variables |
Runs hugo mod tidy instead of go mod tidy, which would remove themes as unused indirect dependencies.
Use it alongside gomod, with the go.mod paths of the Hugo sites separated by |.
{
"extends": [
"github>kickr-dev/renovate//configs/renovate/hugo.json(go.mod|docs/go.mod)"
]
}