Minor and patch bumps automerge, majors are manual; ansible-core minor and major, the image.yml job container and kaniko tooling never automerge; pin-follow for our own images is disabled until Phase 4. No postUpgradeTasks. renovate.json is in build_ignore, so the Collection archive is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
140 lines
5.1 KiB
JSON
140 lines
5.1 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"description": "INERT until Kamino is added to the self-hosted Renovate instance's repository list (the operator's step, Phase 3 of the Renovate plan). Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. postUpgradeTasks are NOT configured: the cluster allows no commands yet (Phase 2/3).",
|
|
"extends": [
|
|
"config:recommended",
|
|
":enablePreCommit"
|
|
],
|
|
"branchPrefix": "renovate/",
|
|
"semanticCommits": "enabled",
|
|
"semanticCommitType": "chore",
|
|
"semanticCommitScope": "deps",
|
|
"enabledManagers": [
|
|
"pip_requirements",
|
|
"pre-commit",
|
|
"github-actions",
|
|
"dockerfile",
|
|
"custom.regex"
|
|
],
|
|
"automerge": true,
|
|
"automergeType": "pr",
|
|
"minimumReleaseAge": "3 days",
|
|
"minimumReleaseAgeBehaviour": "timestamp-optional",
|
|
"timezone": "UTC",
|
|
"pip_requirements": {
|
|
"managerFilePatterns": [
|
|
"/^requirements-dev\\.txt$/"
|
|
]
|
|
},
|
|
"pre-commit": {
|
|
"enabled": true,
|
|
"managerFilePatterns": [
|
|
"/^\\.pre-commit-config\\.yaml$/"
|
|
]
|
|
},
|
|
"github-actions": {
|
|
"managerFilePatterns": [
|
|
"/^\\.gitea/workflows/.+\\.ya?ml$/"
|
|
]
|
|
},
|
|
"dockerfile": {
|
|
"managerFilePatterns": [
|
|
"/^images/[^/]+/Dockerfile$/"
|
|
]
|
|
},
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "The uv pin that installs the build-stage Python interpreters of the ci image (images/ci/Dockerfile). It is an image input: the version bump comes from scripts/bump_image_versions.py via postUpgradeTasks (to be enabled in Phase 2/3).",
|
|
"managerFilePatterns": [
|
|
"/^images/ci/Dockerfile$/"
|
|
],
|
|
"matchStrings": [
|
|
"\\buv==(?<currentValue>[0-9][0-9A-Za-z.+!_-]*)"
|
|
],
|
|
"depNameTemplate": "uv",
|
|
"datasourceTemplate": "pypi"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"description": "The MOLECULE_IMAGE value of molecule.yml is a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Only used by the pin-follow rule below, which is disabled until Phase 4.",
|
|
"managerFilePatterns": [
|
|
"/^\\.gitea/workflows/molecule\\.yml$/"
|
|
],
|
|
"matchStrings": [
|
|
"MOLECULE_IMAGE:\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
|
|
],
|
|
"datasourceTemplate": "docker",
|
|
"versioningTemplate": "semver"
|
|
}
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"description": "Majors are reviewed by hand.",
|
|
"matchUpdateTypes": [
|
|
"major"
|
|
],
|
|
"automerge": false,
|
|
"labels": [
|
|
"breaking-change"
|
|
]
|
|
},
|
|
{
|
|
"description": "ansible-core and ansible-lint move together (the lint rules follow the core version). A new ansible-core minor also needs a tests/sanity/ignore-2.NN.txt, so its minor and major bumps are manual; patches of both follow the global automerge.",
|
|
"groupName": "ansible tooling",
|
|
"matchDatasources": [
|
|
"pypi"
|
|
],
|
|
"matchPackageNames": [
|
|
"ansible-core",
|
|
"ansible-lint"
|
|
]
|
|
},
|
|
{
|
|
"description": "ansible-core minor and major bumps: sanity needs a new tests/sanity/ignore-2.NN.txt, a human adds it.",
|
|
"matchDatasources": [
|
|
"pypi"
|
|
],
|
|
"matchPackageNames": [
|
|
"ansible-core"
|
|
],
|
|
"matchUpdateTypes": [
|
|
"minor",
|
|
"major"
|
|
],
|
|
"automerge": false
|
|
},
|
|
{
|
|
"description": "The image-input classes (requirements-dev.txt, .pre-commit-config.yaml, images/**): a bump of one is an input change of the ci or molecule image. The version bump in image.yml comes from scripts/bump_image_versions.py via postUpgradeTasks (enabled in Phase 2/3, not yet: until then the pull request fails the version check and a human adds the bump). The pin follow-up pull request comes from the docker datasource after the build on main (Phase 4).",
|
|
"matchManagers": [
|
|
"pip_requirements",
|
|
"pre-commit",
|
|
"dockerfile",
|
|
"custom.regex"
|
|
]
|
|
},
|
|
{
|
|
"description": "The job container of image.yml (ubuntu by digest) runs the kaniko push with the org registry credential: never automerged, and kept in its own branch so the Dockerfile base-image bumps are not held back with it.",
|
|
"matchFileNames": [
|
|
".gitea/workflows/image.yml"
|
|
],
|
|
"automerge": false,
|
|
"additionalBranchPrefix": "job-container-"
|
|
},
|
|
{
|
|
"description": "Anything that names the kaniko tooling: the image job that runs it holds the registry push credential, so it is reviewed.",
|
|
"matchPackageNames": [
|
|
"/kaniko/"
|
|
],
|
|
"automerge": false
|
|
},
|
|
{
|
|
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): DISABLED. Phase 4, after a dry run against the registry; until then moving a pin is a reviewed hand edit (scripts/check_image_versions.py pins).",
|
|
"matchPackageNames": [
|
|
"git.rkdr.net/mortis/**"
|
|
],
|
|
"enabled": false
|
|
}
|
|
]
|
|
}
|