Skip to content

Commit c3fd8a7

Browse files
Configure Renovate to auto update chainguard image (#114172)
* Adds renovate.json * Only auto update chainguard image --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: Rene Groeschke <[email protected]>
1 parent 4af241b commit c3fd8a7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

renovate.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>elastic/renovate-config:only-chainguard"
5+
],
6+
"customManagers": [
7+
{
8+
"description": "Extract Wolfi images from elasticsearch DockerBase configuration",
9+
"customType": "regex",
10+
"fileMatch": [
11+
"build\\-tools\\-internal\\/src\\/main\\/java\\/org\\/elasticsearch\\/gradle\\/internal\\/DockerBase\\.java$"
12+
],
13+
"matchStrings": [
14+
"\\s*\"?(?<depName>[^\\s:@\"]+)(?::(?<currentValue>[-a-zA-Z0-9.]+))?(?:@(?<currentDigest>sha256:[a-zA-Z0-9]+))?\"?"
15+
],
16+
"currentValueTemplate": "{{#if currentValue}}{{{currentValue}}}{{else}}latest{{/if}}",
17+
"autoReplaceStringTemplate": "\"{{{depName}}}{{#if newValue}}:{{{newValue}}}{{/if}}{{#if newDigest}}@{{{newDigest}}}{{/if}}\"",
18+
"datasourceTemplate": "docker"
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)