/
renovate.json5
116 lines (112 loc) · 3.46 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:recommended",
":semanticCommitType(build)",
":semanticCommitTypeAll(build)",
"docker:pinDigests",
"group:allNonMajor",
"helpers:pinGitHubActionDigests"
],
username: "aki-bot[bot]",
gitAuthor: "aki-bot <103840025+aki-bot[bot]@users.noreply.github.com>",
platform: "github",
repositories: ["akikanellis/advent-of-code"],
branchPrefix: "update-dependencies-",
onboarding: false,
requireConfig: "required",
automerge: true,
schedule: ["after 3:00 and before 6:00 on Saturday"],
customManagers: [
{
description: "Update Java in .tool-versions.\
The asdf manager for renovate does not currently support the temurin\
distribution.\
See:\
* https://github.com/renovatebot/renovate/issues/19183\
* https://github.com/renovatebot/renovate/issues/19184",
customType: "regex",
// eslint-disable-next-line jsonc/no-useless-escape
fileMatch: ["(^|/)\.tool-versions$"],
matchStrings: ["java\\s+temurin-(?<currentValue>.+)(\\s+|\\s+.*)"],
datasourceTemplate: "java-version",
depNameTemplate: "java"
},
{
description: "Any other file with dependencies",
customType: "regex",
fileMatch: [
/* eslint-disable jsonc/no-useless-escape */
"(^|/)justfile$",
"(^|/).+\.gradle(\.kts)?$",
"(^workflow-templates|\.github/workflows)/[^/]+\.ya?ml$",
"(^|/)action\.ya?ml$",
"^ansible/.*vars/[^/]+\.ya?ml$"
/* eslint-enable jsonc/no-useless-escape */
],
matchStrings: [
"\
.*renovate:\
\\sdatasource=(?<datasource>.*?)\
\\sdepName=(?<depName>.*?)\
(\\sversioning=(?<versioning>.*?))?\
\n.*(version|Version|VERSION)\\s*(:=|=|:)\\s*\"?(?<currentValue>.*?)\
(@(?<currentDigest>sha256:[a-f0-9]+))?\"?\
(\\s+|\\s+.*)"
],
versioningTemplate: "\
{{#if versioning}}\
{{{versioning}}}\
{{else}}\
semver-coerced\
{{/if}}"
}
],
packageRules: [
{
description: "Block automerge for major updates",
matchUpdateTypes: ["major"],
automerge: false
},
{
description: "Limit semantic-release versions to 21.x.x.\
Version 22.x.x is currently not compatible with\
gradle-semantic-release-plugin",
matchDatasources: ["npm"],
matchPackageNames: ["semantic-release"],
allowedVersions: "<= 21"
},
{
description: "Limit conventional-changelog-conventionalcommits versions\
to 6.x.x. Version 7.x.x is currently only compatible with\
semantic-release >= 22",
matchDatasources: ["npm"],
matchPackageNames: ["conventional-changelog-conventionalcommits"],
allowedVersions: "<= 6"
},
{
description: "Limit gradle-semantic-release-plugin versions to 1.7.7.\
Version 1.7.7 is currently only compatible with semantic-release <= 21",
matchDatasources: ["npm"],
matchPackageNames: ["gradle-semantic-release-plugin"],
allowedVersions: "<= 1.7.7"
},
{
description: "Use correct compatibility for\
ghcr.io/super-linter/super-linter",
matchDatasources: ["docker"],
matchPackageNames: ["ghcr.io/super-linter/super-linter"],
versioning: "\
regex:\
^((?<compatibility>.+)-)?\
v?\
(?<major>\\d+)\
(\\.(?<minor>\\d+))?\
(\\.(?<patch>\\d+))?$"
}
],
"docker-compose": {
// eslint-disable-next-line jsonc/no-useless-escape
fileMatch: ["(^|/)(?:docker-)?compose[^/]*\.ya?ml\.j2$"]
}
}