From 62a5c9e55fc0a8753ec40beeba2125532beef7f1 Mon Sep 17 00:00:00 2001 From: "elastic-renovate-prod[bot]" <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:09:52 +0000 Subject: [PATCH 1/2] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000000..591ec645a984e --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>elastic/renovate-config" + ] +} From d728764b2fe6fe6e00ebfb48a6dce56d9bd338e7 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Mon, 7 Oct 2024 19:20:13 +0200 Subject: [PATCH 2/2] Only auto update chainguard image --- renovate.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 591ec645a984e..7dde3a9440ed5 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,21 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "local>elastic/renovate-config" + "github>elastic/renovate-config:only-chainguard" + ], + "customManagers": [ + { + "description": "Extract Wolfi images from elasticsearch DockerBase configuration", + "customType": "regex", + "fileMatch": [ + "build\\-tools\\-internal\\/src\\/main\\/java\\/org\\/elasticsearch\\/gradle\\/internal\\/DockerBase\\.java$" + ], + "matchStrings": [ + "\\s*\"?(?[^\\s:@\"]+)(?::(?[-a-zA-Z0-9.]+))?(?:@(?sha256:[a-zA-Z0-9]+))?\"?" + ], + "currentValueTemplate": "{{#if currentValue}}{{{currentValue}}}{{else}}latest{{/if}}", + "autoReplaceStringTemplate": "\"{{{depName}}}{{#if newValue}}:{{{newValue}}}{{/if}}{{#if newDigest}}@{{{newDigest}}}{{/if}}\"", + "datasourceTemplate": "docker" + } ] }