diff --git a/Makefile b/Makefile index 8212a91dd7..e7908aaff5 100644 --- a/Makefile +++ b/Makefile @@ -491,10 +491,15 @@ CHLOGGEN ?= $(LOCALBIN)/chloggen GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint CHAINSAW ?= $(LOCALBIN)/chainsaw +# renovate: datasource=go depName=sigs.k8s.io/kustomize/kustomize/v5 KUSTOMIZE_VERSION ?= v5.0.3 +# renovate: datasource=go depName=sigs.k8s.io/controller-tools/cmd/controller-gen CONTROLLER_TOOLS_VERSION ?= v0.16.1 +# renovate: datasource=go depName=github.com/golangci/golangci-lint/cmd/golangci-lint GOLANGCI_LINT_VERSION ?= v1.57.2 +# renovate: datasource=go depName=sigs.k8s.io/kind KIND_VERSION ?= v0.20.0 +# renovate: datasource=go depName=github.com/kyverno/chainsaw CHAINSAW_VERSION ?= v0.2.8 .PHONY: install-tools diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..ab1dcf6c50 --- /dev/null +++ b/renovate.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "labels": ["dependencies"], + "enabledManagers": ["regex"], + "customManagers": [ + { + "customType": "regex", + "description" : "Update tool versions in the Makefile", + "fileMatch": [ + "(^|/)Makefile$" + ], + "matchStrings": [ + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:*\\??=\\s*[\"']?(?.+?)[\"']?\\s" + ] + } + ], + "packageRules": [ + { + "matchManagers": ["regex"], + "matchFileNames": ["Makefile"], + "commitMessageTopic": "tool {{depName}}" + } + ] +}