From ddd31183ba5ddaba3688266f3bd882f8742db9f9 Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Wed, 14 Aug 2024 14:35:27 +0200 Subject: [PATCH] chore(renovate): Add renovate config Add renovate configuration to automatically update used software versions in e2e-setup and the github actions used by this repository. Signed-off-by: Felix Matouschek --- renovate.json | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..402bc2c --- /dev/null +++ b/renovate.json @@ -0,0 +1,68 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [":gitSignOff"], + "labels": ["release-note-none"], + "prConcurrentLimit": 3, + "enabledManagers": ["custom.regex", "github-actions"], + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["^hack/e2e-setup.sh$"], + "matchStrings": ["KIND_VERSION=\\${KIND_VERSION:-(?.*?)}"], + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubernetes-sigs/kind" + }, + { + "customType": "regex", + "fileMatch": ["^.github/workflows/integration.yml$"], + "matchStrings": ["\\sversion: (?.*?)\\n"], + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubernetes-sigs/kind" + }, + { + "customType": "regex", + "fileMatch": ["^hack/e2e-setup.sh$"], + "matchStrings": ["KUBECTL_VERSION=\\${KUBECTL_VERSION:-(?.*?)}"], + "datasourceTemplate": "custom.k8s", + "depNameTemplate": "kubectl" + }, + { + "customType": "regex", + "fileMatch": ["^hack/e2e-setup.sh$"], + "matchStrings": ["KUBEVIRT_VERSION=\\${KUBEVIRT_VERSION:-(?.*?)}"], + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubevirt/kubevirt" + }, + { + "customType": "regex", + "fileMatch": ["^hack/e2e-setup.sh$"], + "matchStrings": ["KUBEVIRT_CDI_VERSION=\\${KUBEVIRT_CDI_VERSION:-(?.*?)}"], + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubevirt/containerized-data-importer" + }, + { + "customType": "regex", + "fileMatch": ["^hack/e2e-setup.sh$"], + "matchStrings": ["CNAO_VERSION=\\${CNAO_VERSION:-(?.*?)}"], + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubevirt/cluster-network-addons-operator" + } + ], + "customDatasources": { + "k8s": { + "defaultRegistryUrlTemplate": "https://cdn.dl.k8s.io/release/stable.txt", + "format": "plain" + } + }, + "packageRules": [ + { + "matchFileNames": ["hack/e2e-setup.sh", ".github/workflows/integration.yml"], + "matchManagers": ["custom.regex"], + "groupName": "e2e-setup versions" + }, + { + "matchManagers": ["github-actions"], + "groupName": "GitHub actions" + } + ] +}