From ab2f6b672b1db22aaad63dc3b0b948cf47418d2b Mon Sep 17 00:00:00 2001 From: Prashant Date: Wed, 13 Nov 2024 08:17:13 +0400 Subject: [PATCH 1/2] add renovate --- .github/workflows/renovate.yml | 26 ++++++ renovate.json | 150 +++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 .github/workflows/renovate.yml create mode 100644 renovate.json diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 000000000000..4b6e67df8543 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,26 @@ +name: Renovate +on: + schedule: + - cron: '*/15 * * * *' # Runs every 15 mins + workflow_dispatch: + push: + branches: + - main + - deps_check + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Self-hosted Renovate + uses: renovatebot/github-action@v41.0.2 + with: + token: ${{ secrets.GH_TOKEN }} + configurationFile: renovate.json + env: + LOG_LEVEL: 'debug' + RENOVATE_AUTODISCOVER: 'false' + RENOVATE_REPOSITORIES: ${{ github.repository }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000000..1722bb96fb28 --- /dev/null +++ b/renovate.json @@ -0,0 +1,150 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "onboarding": true, + "platform": "github", + "forkProcessing": "enabled", + "prConcurrentLimit": 20, + "prHourlyLimit": 20, + "dependencyDashboard": true, + "semanticCommits": "enabled", + "automerge": false, + "labels": [ + "dependencies" + ], + "extends": [ + "config:base", + "config:recommended" + ], + "separateMinorPatch": true, + "dockerfile": { + "enabled": false + }, + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "Makefile.variables" + ], + "matchStrings": [ + "kubernetes_version\\s*=\\s*(?\\S+)" + ], + "depNameTemplate": "kubernetes", + "versioningTemplate": "semver-coerced", + "datasourceTemplate": "custom.kubernetes" + }, + { + "customType": "regex", + "fileMatch": [ + "Makefile.variables" + ], + "matchStrings": [ + "helm_version\\s*=\\s*(?\\S+)" + ], + "depNameTemplate": "helm", + "versioningTemplate": "semver-coerced", + "datasourceTemplate": "custom.helm" + }, + { + "customType": "regex", + "fileMatch": [ + "Makefile.variables" + ], + "matchStrings": [ + "go_version\\s*=\\s*(?\\S+)" + ], + "depNameTemplate": "golang", + "versioningTemplate": "semver-coerced", + "datasourceTemplate": "golang-version" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["alpine_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "alpine", + "versioningTemplate": "semver-coerced", + "datasourceTemplate": "custom.alpine" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["runc_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "runc", + "versioningTemplate": "semver", + "datasourceTemplate": "github-releases", + "packageNameTemplate": "opencontainers/runc" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["containerd_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "containerd", + "versioningTemplate": "semver", + "datasourceTemplate": "github-releases", + "packageNameTemplate": "containerd/containerd" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["etcd_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "etcd", + "versioningTemplate": "semver", + "datasourceTemplate": "github-releases", + "packageNameTemplate": "etcd-io/etcd" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["konnectivity_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "konnectivity", + "versioningTemplate": "semver", + "datasourceTemplate": "github-releases", + "packageNameTemplate": "kubernetes-sigs/apiserver-network-proxy" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["iptables_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "iptables", + "versioningTemplate": "loose", + "datasourceTemplate": "custom.iptables" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["keepalived_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "keepalived", + "versioningTemplate": "semver", + "datasourceTemplate": "github-tags", + "packageNameTemplate": "acassen/keepalived" + }, + { + "customType": "regex", + "fileMatch": ["Makefile.variables"], + "matchStrings": ["kine_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "kine", + "versioningTemplate": "semver", + "datasourceTemplate": "github-releases", + "packageNameTemplate": "k3s-io/kine" + } + ], + "customDatasources": { + "kubernetes": { + "defaultRegistryUrlTemplate": "https://cdn.dl.k8s.io/release/stable.txt", + "format": "plain" + }, + "helm": { + "defaultRegistryUrlTemplate": "https://get.helm.sh/helm-latest-version", + "format": "plain" + }, + "alpine": { + "defaultRegistryUrlTemplate": "https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/latest-releases.yaml", + "format": "text", + "extractVersion": "version:\\s*(?[\\d.]+)" + }, + "iptables": { + "defaultRegistryUrlTemplate": "https://ftp.netfilter.org/pub/iptables/?C=M;O=D", + "format": "directory", + "extractVersion": "iptables-(?[\\d.]+)\\.tar\\.xz" + } + } +} From c75f76f40c5814adf217504d9259b9d07f1cdab0 Mon Sep 17 00:00:00 2001 From: Prashant Date: Wed, 13 Nov 2024 08:39:30 +0400 Subject: [PATCH 2/2] add renovate --- .github/workflows/renovate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 4b6e67df8543..825c3f85e2f1 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -1,7 +1,7 @@ name: Renovate on: schedule: - - cron: '*/15 * * * *' # Runs every 15 mins + - cron: '* */4 * * *' # Runs every 4 hours workflow_dispatch: push: branches: @@ -21,6 +21,6 @@ jobs: token: ${{ secrets.GH_TOKEN }} configurationFile: renovate.json env: - LOG_LEVEL: 'debug' + LOG_LEVEL: 'info' RENOVATE_AUTODISCOVER: 'false' RENOVATE_REPOSITORIES: ${{ github.repository }}