Files
Kamino/renovate.json
T
Defame1297 936e253af0 ci(renovate): run on push to main and let Renovate bump its own image
Renovate runs on every push to main, so after each merge the next bot
pull request is rebased without waiting for the daily schedule; the
renovate concurrency group still queues at most one run. The job timeout
drops from 30 to 10 minutes.

The rule that disabled updates to renovate.yml is replaced by a weekly
rule for renovate/renovate: a 3-day release age, never automerged, since
the job runs with the write-capable bot token. One pull request moves
the pin in renovate.yml and its copy in lint.yml. RENOVATE_DOCKER_MAX_PAGES
stays within Docker Hub's anonymous paging limit, so the image's release
timestamps are found and the wait applies.

Our own Docker images get an explicit zero release age. Every rule
description is cut to at most two sentences, and the top-level one now
says that an update with no release timestamp gets no wait.

Closes: #172
Closes: #188
Assisted-by: Claude Code
2026-12-06 17:02:10 +00:00

286 lines
9.5 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Run by .gitea/workflows/renovate.yml: minor and patch updates automerge once scripts/check_bot_pr_diff.py and CI pass, while majors, vulnerability fixes (which skip the release-age wait) and the exceptions below stay manual. Updates open on Mondays (UTC) after a 3-day release age, and an update with no release timestamp gets no wait.",
"extends": [
"config:recommended",
":enablePreCommit"
],
"branchPrefix": "renovate/",
"semanticCommits": "enabled",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"enabledManagers": [
"pip-compile",
"pep621",
"ansible-galaxy",
"pre-commit",
"github-actions",
"dockerfile",
"custom.regex"
],
"automerge": true,
"automergeType": "pr",
"prHourlyLimit": 0,
"minimumReleaseAge": "3 days",
"minimumReleaseAgeBehaviour": "timestamp-optional",
"timezone": "UTC",
"ansible-galaxy": {
"managerFilePatterns": [
"/^requirements\\.yml$/",
"/^extensions/molecule/requirements\\.yml$/"
]
},
"pip-compile": {
"managerFilePatterns": [
"/^requirements-dev\\.lock$/",
"/^requirements-molecule\\.lock$/"
]
},
"pep621": {
"managerFilePatterns": [
"/^pyproject\\.toml$/"
]
},
"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 of the ci and molecule-controller images. It is an image input: the merge publishes a new version of each.",
"managerFilePatterns": [
"/^images/ci/Dockerfile$/",
"/^images/molecule-controller/Dockerfile$/"
],
"matchStrings": [
"\\buv==(?<currentValue>[0-9][0-9A-Za-z.+!_-]*)"
],
"depNameTemplate": "uv",
"datasourceTemplate": "pypi"
},
{
"customType": "regex",
"description": "The ubuntu job container of each image in image.yml, whose release must equal its Dockerfile's because kaniko unpacks the image over it. Never automerged: the job holds the registry push credential (image.yml rule below).",
"managerFilePatterns": [
"/^\\.gitea/workflows/image\\.yml$/"
],
"matchStrings": [
"job_image:\\s*(?<depName>ubuntu):(?<currentValue>[0-9][^@\\s]*)@(?<currentDigest>sha256:[0-9a-f]{64})"
],
"datasourceTemplate": "docker",
"versioningTemplate": "ubuntu"
},
{
"customType": "regex",
"description": "The image pins of molecule.yml are multi-line `>-` scalars, which the github-actions manager does not read. Used by the pin-follow rule below.",
"managerFilePatterns": [
"/^\\.gitea/workflows/molecule\\.yml$/"
],
"matchStrings": [
"(?:CONTROLLER_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\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": "Dockerfile base-image bumps automerge once a code owner approves (images/** is in CODEOWNERS), after their own CI has built and run the new image. Placed first so the majors rule below still turns automerge off.",
"matchManagers": [
"dockerfile"
],
"automerge": true
},
{
"description": "Renovate's own image never automerges: its job runs with the write-capable bot token. One weekly pull request moves the pin in renovate.yml and lint.yml's copy together.",
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"renovate/renovate"
],
"schedule": [
"on monday"
],
"minimumReleaseAge": "3 days",
"automerge": false
},
{
"description": "A new Ubuntu release is a deliberate edit, never a bump: each molecule-ubuntu<NNNN> image is one release by contract, and each job container must run its Dockerfile's release. Tag and digest updates within a release still arrive.",
"matchPackageNames": [
"ubuntu"
],
"matchUpdateTypes": [
"major"
],
"enabled": false
},
{
"description": "Majors are reviewed by hand.",
"matchUpdateTypes": [
"major"
],
"automerge": false,
"labels": [
"breaking-change"
]
},
{
"description": "ansible-core and ansible-lint move together, because the lint rules follow the core version. One pull request moves the ansible-core pins of both locks, which check_image_versions.py pins holds equal.",
"groupName": "ansible tooling",
"matchDatasources": [
"pypi"
],
"matchPackageNames": [
"ansible-core",
"ansible-lint"
]
},
{
"description": "Hold ansible-lint at the newest version galaxy-importer allows, or pip cannot install Lint's and Build's tools. Raise or remove the cap once galaxy-importer lifts its ansible-lint limit.",
"matchDatasources": [
"pypi"
],
"matchPackageNames": [
"ansible-lint"
],
"allowedVersions": "<=26.10.1"
},
{
"description": "The job containers of image.yml hold the registry push credential while the image job runs, so their bumps never automerge. Their ubuntu bumps share a branch with the Dockerfile FROM bumps, so that group is manual too.",
"matchFileNames": [
".gitea/workflows/image.yml"
],
"automerge": false
},
{
"description": "The Dockerfile FROM and image.yml job_image digests of one Ubuntu update move in one pull request, so each release pair stays in step and one Images run covers both.",
"matchPackageNames": [
"ubuntu"
],
"groupName": "ubuntu base images"
},
{
"description": "Safety net: kaniko is pinned by layer digests that no manager reads, so it is updated by hand. If a manager ever reads it, its bumps do not automerge.",
"matchPackageNames": [
"/kaniko/"
],
"automerge": false
},
{
"description": "Our own images are built from main by the Images workflow, so there is no third-party release to wait for. Docker only, so another kind of dependency from this organisation keeps the wait.",
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"git.rkdr.net/mortis/**"
],
"minimumReleaseAge": "0 days"
},
{
"description": "Moves the pins of our own images in the workflows to the newest published version in one pull request at any time, so main catches up minutes after an Images run. It automerges once a code owner approves (CODEOWNERS), after its own Lint, Build and Molecule run on the new images.",
"matchPackageNames": [
"git.rkdr.net/mortis/**"
],
"automerge": true,
"groupName": "own CI images",
"schedule": [
"at any time"
]
},
{
"description": "Look the pre-commit hooks up with git ls-remote (git-tags), because this run has no GitHub token; it needs RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml. git-tags has no release timestamps, so no wait applies and a person reviews every hook bump.",
"matchManagers": [
"pre-commit"
],
"matchDatasources": [
"github-tags"
],
"overrideDatasource": "git-tags",
"overridePackageName": "https://github.com/{{{depName}}}",
"automerge": false
},
{
"description": "Lint and build tooling in one weekly pull request across requirements-dev.lock and the ci image's uv pin, so one ci image build instead of one per tool.",
"matchDatasources": [
"pypi"
],
"matchPackageNames": [
"antsibull-changelog",
"galaxy-importer",
"reuse",
"pre-commit",
"uv"
],
"groupName": "lint tooling"
},
{
"description": "The pre-commit hooks in one weekly pull request; never automerged (rule above).",
"matchManagers": [
"pre-commit"
],
"groupName": "pre-commit hooks"
},
{
"description": "requires-python in pyproject.toml is the floor ruff formats for, not a pin: never updated by the bot.",
"matchManagers": [
"pep621"
],
"matchDepTypes": [
"requires-python"
],
"enabled": false
},
{
"description": "No lock file maintenance for uv.lock: scripts/check_uv_lock.py refuses any change to a package other than apm-cli, so a person refreshes uv.lock by hand.",
"matchManagers": [
"pep621"
],
"matchUpdateTypes": [
"lockFileMaintenance"
],
"enabled": false
},
{
"description": "apm-cli (pyproject.toml and uv.lock) gets its own pull request, never automerged: CI never runs apm, so a green run says nothing about a new version. Placed last so no rule above turns automerge back on.",
"matchManagers": [
"pep621"
],
"matchPackageNames": [
"apm-cli"
],
"automerge": false
}
],
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"on monday"
],
"automerge": false,
"labels": [
"lock-file-maintenance"
]
},
"schedule": [
"on monday"
],
"osvVulnerabilityAlerts": true,
"vulnerabilityAlerts": {
"automerge": false
}
}