Skip to content

Commit 40c2d0e

Browse files
committed
feat: add Renovate config
For now, this will only look at explicitly defined packages in defined locations. This keeps down the noise generated from the dependency bot.
1 parent e7db266 commit 40c2d0e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

renovate.json5

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
// We don't use this for now, as we want to avoid the noise - we'll only selectively activate updates
4+
// "extends": [
5+
// "config:recommended",
6+
// ]
7+
8+
// We want a nice overview of dependencies under renovate's supervision
9+
dependencyDashboard: true,
10+
// See .github/CODEOWNERS
11+
assigneesFromCodeOwners: true,
12+
// Do not separate patch and minor upgrades into separate PRs for the same dependency
13+
separateMinorPatch: false,
14+
// Use nicer semantic commits style for messages
15+
semanticCommits: "enabled",
16+
17+
// Don't jump the gun in case something goes awry in upstream releases
18+
minimumReleaseAge: "3 days",
19+
// Only have this number of PRs open at any time. We will further limit this by using grouping for packages
20+
prConcurrentLimit: 5,
21+
// Create PRs only on weekends to avoid noise during the week (sufficient for scheduled maintenance)
22+
schedule: ["at 06:00 am on Sunday"],
23+
24+
packageRules: [
25+
{
26+
description: "Group Alpine Package Manager dependencies for the Config Baker Container Image",
27+
matchFileNames: ["modules/container-configbaker/**/Dockerfile"],
28+
matchDatasources: ["repology"],
29+
groupName: "Config Baker Container - APK packages"
30+
},
31+
],
32+
33+
customManagers: [
34+
{
35+
customType: "regex",
36+
managerFilePatterns: ["/^Dockerfile$/"],
37+
matchStrings: [
38+
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\sENV .*?_VERSION=\"(?<currentValue>.*)\"\\s"
39+
],
40+
versioningTemplate: "loose"
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)