-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenovate.json
More file actions
207 lines (207 loc) · 6.35 KB
/
Copy pathrenovate.json
File metadata and controls
207 lines (207 loc) · 6.35 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Automated container dependency updates with security scanning for NixOS flake",
"extends": [
"config:recommended"
],
"timezone": "Europe/Copenhagen",
"schedule": [
"before 3am on the first day of the month"
],
"automerge": false,
"platformAutomerge": false,
"prConcurrentLimit": 5,
"prHourlyLimit": 2,
"osvVulnerabilityAlerts": true,
"customManagers": [
{
"customType": "regex",
"description": "Update hardcoded container images in Quadlet definitions (Image=registry/image:tag)",
"managerFilePatterns": [
"/^modules/services/containers/.*\\.nix$/"
],
"matchStrings": [
"Image\\s*=\\s*(?<depName>[^:\\s$]+):(?<currentValue>[^\\s\\n$]+)"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "Update Nix image options with full image references (handles multi-line)",
"managerFilePatterns": [
"/^modules/services/containers/.*\\.nix$/"
],
"matchStrings": [
"image\\s*=\\s*lib\\.mkOption\\s*\\{[\\s\\S]*?default\\s*=\\s*\"(?<depName>[^:]+):(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "Update imageTag options used with variable interpolation, regardless of whether the option or Image line appears first",
"managerFilePatterns": [
"/^modules/services/containers/.*\\.nix$/"
],
"matchStrings": [
"Image\\s*=\\s*(?<depName>[^:\\s]+):\\$\\{[^}]+\\}[\\s\\S]*?\\w*[iI]mageTag\\s*=\\s*lib\\.mkOption\\s*\\{[\\s\\S]*?default\\s*=\\s*\"(?<currentValue>[^\"]+)\"",
"\\w*[iI]mageTag\\s*=\\s*lib\\.mkOption\\s*\\{[\\s\\S]*?default\\s*=\\s*\"(?<currentValue>[^\"]+)\"[\\s\\S]*?Image\\s*=\\s*(?<depName>[^:\\s]+):\\$\\{[^}]+\\}"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "Update GitHub release versions in pkgs/by-name packages (fetchurl pattern)",
"managerFilePatterns": [
"/^pkgs/by-name/.*/package\\.nix$/"
],
"matchStrings": [
"version\\s*=\\s*\"(?<currentValue>[^\"]+)\"[\\s\\S]*?url\\s*=\\s*\"https://github\\.com/(?<depName>[^/]+/[^/]+)/releases/download/"
],
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Update GitHub releases in pkgs/by-name packages (fetchFromGitHub pattern)",
"managerFilePatterns": [
"/^pkgs/by-name/.*/package\\.nix$/"
],
"matchStrings": [
"version\\s*=\\s*\"(?<currentValue>[^\"]+)\"[\\s\\S]*?fetchFromGitHub\\s*\\{[\\s\\S]*?owner\\s*=\\s*\"(?<owner>[^\"]+)\"[\\s\\S]*?repo\\s*=\\s*\"(?<repo>[^\"]+)\""
],
"depNameTemplate": "{{{owner}}}/{{{repo}}}",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Update GitHub releases in pkgs/by-name packages (fetchzip pattern)",
"managerFilePatterns": [
"/^pkgs/by-name/.*/package\\.nix$/"
],
"matchStrings": [
"version\\s*=\\s*\"(?<currentValue>[^\"]+)\"[\\s\\S]*?fetchzip\\s*\\{[\\s\\S]*?url\\s*=\\s*\"https://github\\.com/(?<depName>[^/]+/[^/]+)/releases/download/"
],
"datasourceTemplate": "github-releases"
}
],
"packageRules": [
{
"description": "Critical infrastructure services - require manual review, wait 3 days for stability",
"matchDatasources": [
"docker"
],
"groupName": "Critical Infrastructure",
"automerge": false,
"minimumReleaseAge": "3 days",
"schedule": [
"before 3am on the first day of the month"
],
"labels": [
"critical-service"
],
"matchPackageNames": [
"/^pihole/pihole$/",
"/^.*qmcgaw/gluetun$/",
"/^.*komodo-core$/",
"/^.*komodo-periphery$/",
"/^mongo$/"
]
},
{
"description": "Non-critical services - group together for easier review",
"matchDatasources": [
"docker"
],
"groupName": "Non-critical containers",
"schedule": [
"before 3am on the first day of the month"
],
"matchPackageNames": [
"!/^pihole/pihole$/",
"!/^.*qmcgaw/gluetun$/",
"!/^.*komodo-core$/",
"!/^.*komodo-periphery$/",
"!/^mongo$/"
]
},
{
"description": "Security updates bypass monthly schedule - run immediately",
"matchUpdateTypes": [
"patch",
"pin"
],
"matchDatasources": [
"docker"
],
"labels": [
"security-update"
],
"prPriority": 10,
"schedule": [
"at any time"
]
},
{
"description": "Pin major versions for Pi-hole to avoid breaking DNS changes",
"matchPackageNames": [
"pihole/pihole"
],
"separateMajorMinor": true,
"separateMinorPatch": false
},
{
"description": "Local-only images (helium, openmemory) cannot be updated via registries",
"enabled": false,
"matchPackageNames": [
"/^helium-/",
"/^localhost/openmemory/"
]
},
{
"description": "Major version updates require explicit approval",
"matchUpdateTypes": [
"major"
],
"labels": [
"major-update",
"needs-review"
]
},
{
"description": "Custom pkgs/by-name packages - group by package type",
"matchFileNames": [
"pkgs/by-name/**/package.nix"
],
"groupName": "Custom Nix packages",
"schedule": [
"before 3am on the first day of the month"
],
"labels": [
"custom-packages"
]
},
{
"description": "Separate updates for fonts vs applications in custom packages",
"matchFileNames": [
"pkgs/by-name/font-*/package.nix"
],
"groupName": "Custom font packages",
"labels": [
"fonts"
]
}
],
"labels": [
"dependencies",
"renovate"
],
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{configDescription}}}{{{footer}}}",
"ignorePaths": [
"**/node_modules/**",
"**/test/**",
"**/__tests__/**"
]
}