mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-07 10:06:57 +02:00
Merge pull request #4978 from gofogo/chore/added-renovate
feat(deps): added renovate config for custom regexes
This commit is contained in:
commit
d788581244
57
.github/renovate-config.js
vendored
Normal file
57
.github/renovate-config.js
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
"use strict";
|
||||||
|
// https://github.com/renovatebot/github-action/blob/main/.github/renovate.json
|
||||||
|
// https://docs.renovatebot.com/configuration-options/
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
"extends": [":disableRateLimiting", ":semanticCommits"],
|
||||||
|
"assigneesFromCodeOwners": true,
|
||||||
|
"gitAuthor": "Renovate Bot <bot@external-dns.com>",
|
||||||
|
"onboarding": false,
|
||||||
|
"platform": "github",
|
||||||
|
"repositories": [
|
||||||
|
"kubernetes-sigs/external-dns"
|
||||||
|
],
|
||||||
|
"printConfig": false,
|
||||||
|
"prConcurrentLimit": 0,
|
||||||
|
"prHourlyLimit": 0,
|
||||||
|
"stabilityDays": 3,
|
||||||
|
"pruneStaleBranches": true,
|
||||||
|
"recreateClosed": true,
|
||||||
|
"dependencyDashboard": false,
|
||||||
|
"requireConfig": false,
|
||||||
|
"rebaseWhen": "behind-base-branch",
|
||||||
|
"baseBranches": ["master", "main"],
|
||||||
|
"recreateWhen": "always",
|
||||||
|
"semanticCommits": "enabled",
|
||||||
|
"pre-commit": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"labels": ["{{depType}}", "datasource::{{datasource}}", "type::{{updateType}}", "manager::{{manager}}"], // can be overridden per packageRule
|
||||||
|
"addLabels": ["renovate-bot"], // cannot be overridden, any packageRule config extends this
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"groupName": "pre-commit",
|
||||||
|
"matchManagers": ["pre-commit"],
|
||||||
|
"addLabels": ["pre-commit", "skip-release"]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"enabledManagers": [ // supported managers https://docs.renovatebot.com/modules/manager/
|
||||||
|
"regex",
|
||||||
|
"pre-commit"
|
||||||
|
],
|
||||||
|
"customManagers": [ // https://docs.renovatebot.com/modules/manager/regex/
|
||||||
|
{
|
||||||
|
// to capture registry.k8s.io/external-dns/external-dns:<version> in *.md files
|
||||||
|
"customType": "regex",
|
||||||
|
"fileMatch": [
|
||||||
|
".*\\.md$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"(?<depName>registry.k8s.io\/external-dns\/external-dns):(?<currentValue>.*)"
|
||||||
|
],
|
||||||
|
"depNameTemplate": "kubernetes-sigs/external-dns",
|
||||||
|
"datasourceTemplate": "github-releases",
|
||||||
|
"versioningTemplate": "semver"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
3
.github/renovate.json
vendored
Normal file
3
.github/renovate.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
26
.github/workflows/dependency-update.yaml
vendored
Normal file
26
.github/workflows/dependency-update.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: update-versions-with-renovate
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master]
|
||||||
|
schedule:
|
||||||
|
# https://crontab.guru/
|
||||||
|
# once a day
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-versions-with-renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'kubernetes-sigs/external-dns'
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4.2.2
|
||||||
|
# https://github.com/renovatebot/github-action
|
||||||
|
- name: self-hosted renovate
|
||||||
|
uses: renovatebot/github-action@v41.0.14
|
||||||
|
with:
|
||||||
|
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
configurationFile: .github/renovate-config.js
|
||||||
|
env:
|
||||||
|
LOG_LEVEL: info
|
Loading…
Reference in New Issue
Block a user