Skip to content

Commit c0eacec

Browse files
committed
renovate: handle dockerfile bump properly
We don't use the default rule which proposes to bump to latest fxx found in quay.io/fedora wich is rawhide. Instead, we use the endoflife-date datasource which publish only the stable releases [1]. So this rule will bump our dockerfile based on Fedora to latest stable release. [1] https://endoflife.date/fedora
1 parent dd5f548 commit c0eacec

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

renovate.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"enabled": false,
1919
"description": "Disable updates for Go modules"
2020
},
21+
{
22+
"matchDatasources": ["docker"],
23+
"matchDepNames": ["quay.io/fedora/fedora"],
24+
"enabled": false
25+
},
2126
{
2227
"matchManagers": ["rpm"],
2328
"matchBaseBranches": ["main"],
@@ -38,6 +43,19 @@
3843
}
3944
],
4045
"customManagers": [
46+
{
47+
"customType": "regex",
48+
"description": "Update Fedora base image based on endoflife-date",
49+
"fileMatch": [
50+
"Dockerfile|Containerfile"
51+
],
52+
"matchStrings": [
53+
"quay.io/fedora/fedora:(?<currentValue>.*)"
54+
],
55+
"versioningTemplate": "loose",
56+
"datasourceTemplate": "endoflife-date",
57+
"depNameTemplate": "fedora"
58+
},
4159
{
4260
"customType": "regex",
4361
"datasourceTemplate": "custom.oc",

0 commit comments

Comments
 (0)