|
52 | 52 | postUpdateOptions: ["gomodTidy", "gomodUpdateImportPaths"], |
53 | 53 |
|
54 | 54 | packageRules: [ |
55 | | - // Enable pinning for container images |
| 55 | + // Enable pinning for container images (main and supported release branches) |
56 | 56 | // https://docs.renovatebot.com/presets-docker/#dockerpindigests |
57 | 57 | { |
58 | 58 | enabled: true, |
|
63 | 63 | schedule: ["* * * * 0"], // weekly |
64 | 64 | }, |
65 | 65 |
|
66 | | - // Base images from dev_tools/builder_images |
| 66 | + // Base images from dev_tools/builder_images (main branch) |
67 | 67 | // are upgraded separately as it requires two steps |
68 | 68 | { |
69 | 69 | enabled: true, |
|
73 | 73 | groupSlug: "pin-builders", |
74 | 74 | schedule: ["* * 1 * *"], // every month |
75 | 75 | matchPaths: ["dev_tools/builder_images/**"], |
| 76 | + matchBaseBranches: ["main"], |
| 77 | + }, |
| 78 | + |
| 79 | + // Disable dev_tools/builder_images images upgrades |
| 80 | + // for non-main branch |
| 81 | + { |
| 82 | + enabled: false, |
| 83 | + matchDatasources: ["docker"], |
| 84 | + matchPaths: ["dev_tools/builder_images/**"], |
| 85 | + matchBaseBranches: ["!main"], |
76 | 86 | }, |
77 | 87 |
|
78 | 88 | // Disable non-security upgrades for go and npm. |
|
155 | 165 | matchUpdateTypes: ["major", "minor", "patch"], |
156 | 166 | }, |
157 | 167 |
|
158 | | - // Group GitHub Actions updates |
| 168 | + // Group GitHub Actions updates for main branch |
159 | 169 | { |
160 | 170 | enabled: true, |
161 | 171 | separateMajorMinor: false, |
162 | 172 | groupName: "GitHub Actions", |
163 | 173 | matchManagers: ["github-actions"], |
164 | 174 | matchPackagePatterns: ["*"], |
165 | 175 | schedule: ["* * 1,15 * *"], // twice a month |
| 176 | + matchBaseBranches: ["main"], |
| 177 | + }, |
| 178 | + |
| 179 | + // Disable upgrades for non-main branches |
| 180 | + { |
| 181 | + enabled: false, |
| 182 | + matchManagers: ["github-actions"], |
| 183 | + matchBaseBranches: ["!main"], |
166 | 184 | }, |
167 | 185 |
|
168 | 186 | // Go version used in GitHub Actions is updated manually |
|
190 | 208 | matchUpdateTypes: ["major", "minor", "patch"], |
191 | 209 | }, |
192 | 210 |
|
193 | | - // Group Go version upgrades |
| 211 | + // Group Go version upgrades for main branch |
194 | 212 | { |
195 | 213 | enabled: true, |
196 | 214 | matchPackageNames: ["golang", "go"], |
197 | 215 | allowedVersions: "<1.25", |
198 | 216 | groupName: "Go version", |
199 | 217 | groupSlug: "go-version", |
200 | 218 | schedule: ["* * * * 0"], // weekly |
| 219 | + matchBaseBranches: ["main"], |
| 220 | + }, |
| 221 | + |
| 222 | + // Group Go version upgrades for supported release branch |
| 223 | + // with necessary restrictions |
| 224 | + { |
| 225 | + enabled: true, |
| 226 | + matchPackageNames: ["golang", "go"], |
| 227 | + allowedVersions: "<1.24", |
| 228 | + groupName: "Go version", |
| 229 | + groupSlug: "go-version", |
| 230 | + schedule: ["* * * * 0"], // weekly |
| 231 | + matchBaseBranches: ["release-2.13"], |
201 | 232 | }, |
202 | 233 |
|
203 | 234 | // Restrict uv version used in workflows, it will be updated manually |
|
0 commit comments