Skip to content

Commit

Permalink
adapt renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Mar 22, 2024
1 parent 8ac1d25 commit 87e32fc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:recommended",
":semanticCommitsDisabled",
"regexManagers:githubActionsVersions",
"group:monorepos"
],
labels: ["kind/enhancement"],
customManagers: [
{
// Update `_VERSION` and `_version` variables in Makefiles and scripts.
// Inspired by `regexManagers:dockerfileVersions` preset.
customType: "regex",
fileMatch: ["Makefile$", "\\.yaml$", "\\.sh$", "^/hack/*"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *\"?(?<currentValue>.+?)\"?\\s"
]
},
{
// Update `version` variables in common-components.yaml.
// Inspired by `regexManagers:dockerfileVersions` preset.
customType: "regex",
fileMatch: ["common-components\\.yaml$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+version\\s*:\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
},
],
packageRules: [
{
// Group github-actions in one PR.
groupName: "github-actions",
matchManagers: ["github-actions"]
},
{
// Only create PRs for patch updates of kubectl.
"matchPackageNames": ["kubernetes/kubernetes"],
// This is a compromise due to the version skew policy of Kubernetes.
"allowedVersions": "~1.28"
}
]
}
3 changes: 0 additions & 3 deletions renovate.json

This file was deleted.

0 comments on commit 87e32fc

Please sign in to comment.