Skip to content

Commit 3d90080

Browse files
DerRockWolfmnencia
authored andcommitted
update matchStrings regex to treat digest as optional
Signed-off-by: RockWolf <git@rockwolf.eu>
1 parent 4cf4337 commit 3d90080

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,12 @@ As CloudNativePG's `Cluster` CRDs are not automatically picked up by renovate a
276276
'/\\.yaml$/',
277277
],
278278
matchStrings: [
279-
'imageName: (?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>sha256:[a-f0-9]+)',
279+
'imageName: (?<depName>[^\\s:]+):(?<currentValue>[^\\s@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?',
280280
],
281281
datasourceTemplate: 'docker',
282282
// matches: 17.6-202509151215-minimal-trixie
283283
versioningTemplate: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>\\S+)$',
284+
autoReplaceStringTemplate: '{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}',
284285
}
285286
]
286287
}

0 commit comments

Comments
 (0)