Skip to content

Commit 356443c

Browse files
DerRockWolfmnencia
authored andcommitted
update matchStrings regex to treat digest as optional
Signed-off-by: RockWolf <[email protected]>
1 parent ed5090c commit 356443c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,12 @@ As CloudNativePG's `Cluster` CRDs are not automatically picked up by renovate a
258258
'/\\.yaml$/',
259259
],
260260
matchStrings: [
261-
'imageName: (?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>sha256:[a-f0-9]+)',
261+
'imageName: (?<depName>[^\\s:]+):(?<currentValue>[^\\s@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?',
262262
],
263263
datasourceTemplate: 'docker',
264264
// matches: 17.6-202509151215-minimal-trixie
265265
versioningTemplate: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>\\S+)$',
266+
autoReplaceStringTemplate: '{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}',
266267
}
267268
]
268269
}

0 commit comments

Comments
 (0)