Skip to content

Commit f69911c

Browse files
authored
config(renovate): maintain Dockerfile version precision based on filename semver suffix convention (#2767)
* config(renovate): update rule to match major+minor filenames Signed-off-by: Adam Setch <[email protected]> * config(renovate): update rule to match major+minor filenames Signed-off-by: Adam Setch <[email protected]> * config(renovate): update rule to match major+minor filenames Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]>
1 parent e50a297 commit f69911c

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

renovate.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,30 @@
2424
"rangeStrategy": "auto"
2525
},
2626
{
27-
"description": "cdxgen images: limit docker image updates to exclude major updates as we explicitly set these versions",
27+
"description": "cdxgen images: separate minor and patch releases, required for the following rules to work correctly",
2828
"matchDatasources": ["docker"],
29-
"matchFileNames": ["ci/**/*"],
29+
"matchFileNames": ["ci/**/Dockerfile.*"],
3030
"extends": [":separatePatchReleases"]
3131
},
3232
{
33-
"description": "cdxgen images: limit docker image updates to exclude major updates as we explicitly set these versions",
33+
"description": "cdxgen images: exclude major version updates for images pinned to a specific major version by filename convention",
3434
"matchDatasources": ["docker"],
35-
"matchFileNames": ["ci/**/*"],
35+
"matchFileNames": ["/ci\\/.*\\/Dockerfile.*\\d+$/"],
3636
"matchUpdateTypes": ["major"],
3737
"enabled": false
3838
},
3939
{
40-
"description": "cdxgen images: in addition to the rule above, these specific images are excluded from minor updates as we explicitly set these versions",
40+
"description": "cdxgen images: exclude major and minor version updates for images pinned to a specific major and minor version by filename convention",
4141
"matchDatasources": ["docker"],
42-
"matchDepNames": [
43-
"golang",
44-
"php",
45-
"python",
46-
"ruby",
47-
"registry.opensuse.org/opensuse/bci/python",
48-
"registry.suse.com/bci/python"
49-
],
50-
"matchFileNames": ["ci/**/*"],
51-
"matchUpdateTypes": ["minor"],
42+
"matchFileNames": ["/ci\\/.*\\/Dockerfile.*\\d+\\.\\d+$/"],
43+
"matchUpdateTypes": ["major", "minor"],
44+
"enabled": false
45+
},
46+
{
47+
"description": "cdxgen images: exclude major, minor and patch version updates for images pinned to a specific major and minor version by filename convention",
48+
"matchDatasources": ["docker"],
49+
"matchFileNames": ["/ci\\/.*\\/Dockerfile.*\\d+\\.\\d+\\.\\d+$/"],
50+
"matchUpdateTypes": ["major", "minor", "patch"],
5251
"enabled": false
5352
},
5453
{

0 commit comments

Comments
 (0)