diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 0000000..a8433f2 --- /dev/null +++ b/.github/renovate.json5 @@ -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=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *\"?(?.+?)\"?\\s" + ] + }, + { + // Update `version` variables in common-components.yaml. + // Inspired by `regexManagers:dockerfileVersions` preset. + customType: "regex", + fileMatch: ["common-components\\.yaml$"], + matchStrings: [ + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s+version\\s*:\\s*[\"']?(?.+?)[\"']?\\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" + } + ] +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 7190a60..0000000 --- a/renovate.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json" -}