-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy path.renovaterc.json5
More file actions
114 lines (114 loc) · 4.28 KB
/
.renovaterc.json5
File metadata and controls
114 lines (114 loc) · 4.28 KB
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
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["github>home-operations/renovate-config"],
customManagers: [
{
customType: "regex",
description: "Process Annotations in Docker Bake",
managerFilePatterns: ["/(^|/)docker-bake\\.hcl$/"],
matchStrings: [
'datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?\\n.+ = "(?<currentValue>[^"]+)"',
],
datasourceTemplate: "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
},
{
customType: "regex",
description: "Process Annotations in Dockerfiles",
managerFilePatterns: ["/(^|/)Dockerfile$/"],
matchStrings: [
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?\\n.+(:\\s|=)(&\\S+\\s)?(?<currentValue>\\S+)",
],
datasourceTemplate: "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
},
],
customDatasources: {
qbittorrent: {
defaultRegistryUrlTemplate: "https://github.com/userdocs/qbittorrent-nox-static/releases/latest/download/dependency-version.json",
format: "json",
transformTemplates: ['{"releases":[{"version": qbittorrent}]}'],
},
"servarr-develop": {
defaultRegistryUrlTemplate: "https://{{packageName}}.servarr.com/v1/update/develop/changes?os=linux&runtime=netcore",
format: "json",
transformTemplates: ['{"releases":[{"version": $[0].version}]}'],
},
"servarr-nightly": {
defaultRegistryUrlTemplate: "https://{{packageName}}.servarr.com/v1/update/nightly/changes?os=linux&runtime=netcore",
format: "json",
transformTemplates: ['{"releases":[{"version": $[0].version}]}'],
},
"sonarr-develop": {
defaultRegistryUrlTemplate: "https://services.sonarr.tv/v1/update/develop/changes?os=linux&runtime=netcore&version=4.0",
format: "json",
transformTemplates: ['{"releases":[{"version": $[0].version}]}'],
},
plex: {
defaultRegistryUrlTemplate: "https://plex.tv/api/downloads/5.json",
format: "json",
transformTemplates: [
'{"releases":[{"version": computer.Linux.version}]}',
],
},
},
packageRules: [
{
description: ["Release Rules for App Updates"],
addLabels: ["app/{{parentDir}}"],
additionalBranchPrefix: "{{parentDir}}-",
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
commitMessageTopic: "{{depName}}",
matchFileNames: ["**/docker-bake.hcl", "**/Dockerfile"],
semanticCommitScope: "{{parentDir}}",
semanticCommitType: "release",
},
{
description: ["Auto-merge App Updates"],
matchFileNames: ["**/docker-bake.hcl"],
automerge: true,
automergeType: "pr",
ignoreTests: false,
},
{
description: ["Allowed Ubuntu Version for Base Images"],
matchDatasources: ["docker"],
matchPackageNames: ["/ubuntu/"],
allowedVersions: "/24\\.04/",
},
{
description: ["Allowed Alpine Version for Base Images"],
matchDatasources: ["docker"],
matchFileNames: ["**/Dockerfile"],
matchPackageNames: ["/alpine/"],
allowedVersions: "/3\\.23/",
},
{
description: ["Allowed Alpine Version for Postgres Base Images"],
matchDatasources: ["docker"],
matchPackageNames: ["/postgres/"],
allowedVersions: "/alpine3\\.23/",
},
{
description: ["Allowed Python Version for Alpine Base Images"],
matchDatasources: ["docker"],
matchFileNames: ["**/Dockerfile"],
matchPackageNames: ["/python/"],
allowedVersions: "/3\\.14-alpine3\\.23/",
},
{
description: ["Allowed Python Version for Debian Base Images"],
matchDatasources: ["docker"],
matchFileNames: ["**/Dockerfile"],
matchPackageNames: ["/python/"],
allowedVersions: "/3\\.14-slim/",
},
{
description: ["Allowed Java Version for NZBHydra2 Base Image"],
matchDatasources: ["docker"],
matchFileNames: ["apps/nzbhydra2/Dockerfile"],
matchPackageNames: ["/amazoncorretto/"],
allowedVersions: "/17-alpine3\\.22/",
},
],
}