Skip to content

Commit 1251b01

Browse files
[ci] more precise regex for renovate images detection (#5461)
* [ci] more precise regex for images detection Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de> * Update renovate.json Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com> Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de> --------- Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de> Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de> Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
1 parent beb0b62 commit 1251b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renovate.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"(^|/).+\\.yaml$"
2727
],
2828
"matchStrings": [
29-
"\\s*image:\\s+registry:\\s*[\\\"']?(?<registry>.*?)[\\\"']?\\s+(?:repository|name):\\s*[\\\"']?(?<repository>.*?)[\\\"']?\\s+tag:\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
29+
"[\\t ]*image:\\s+registry:\\s*[\\\"']?(?<registry>\\S+\\.\\S+?)[\\\"']?[\\t ]*\\r?\\n[\\t ]*(?:repository|name):\\s*[\\\"']?(?<repository>.*?)[\\\"']?[\\t ]*\\r?\\n[\\t ]*tag:\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
3030
],
3131
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
3232
"datasourceTemplate": "docker"
@@ -37,7 +37,7 @@
3737
"(^|/).+\\.yaml$"
3838
],
3939
"matchStrings": [
40-
"\\s*image:\\s+[\\\"']?(?<registry>[^{]+\\..+?)\\/(?<repository>.*?):(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
40+
"[\\t ]*image:\\s+[\\\"']?(?<registry>\\S+\\.\\S+?)\\/(?<repository>.*?):(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
4141
],
4242
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
4343
"datasourceTemplate": "docker"

0 commit comments

Comments
 (0)