From a61ab14350f71fdd2f018befc42002866a34f074 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Thu, 13 Jun 2024 19:28:40 +0200 Subject: [PATCH] chore: configure renovate to bump image deps (#1599) * chore: configure renovate to bump image deps * chore: add tracetest and opensearch to renovate --- .env | 2 +- renovate.json5 | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 66184047ad..4b9d67b285 100644 --- a/.env +++ b/.env @@ -10,7 +10,7 @@ COLLECTOR_CONTRIB_IMAGE=otel/opentelemetry-collector-contrib:0.102.1 FLAGD_IMAGE=ghcr.io/open-feature/flagd:v0.10.2 GRAFANA_IMAGE=grafana/grafana:10.4.3 JAEGERTRACING_IMAGE=jaegertracing/all-in-one:1.57 -# must also update version field in ./src/grafana/provisioning/datasources/opensearch.yml +# must also update version field in ./src/grafana/provisioning/datasources/opensearch.yaml OPENSEARCH_IMAGE=opensearchproject/opensearch:2.14.0 POSTGRES_IMAGE=postgres:16.3 PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v2.52.0 diff --git a/renovate.json5 b/renovate.json5 index 75611e5bf6..ed723b0e63 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -100,5 +100,38 @@ "matchPackageNames": ["eclipse-temurin"], "enabled": false } + ], + + "regexManagers": [ + { + // Parse image version from .env file. + "fileMatch": [ + ".env$" + ], + "datasourceTemplate": "docker", + "matchStrings": [ + "IMAGE=(?.+):(?.+)" + ] + }, + { + "fileMatch": [ + "test/tracetesting/Dockerfile$" + ], + "datasourceTemplate": "docker", + "depNameTemplate": "kubeshop/tracetest", + "matchStrings": [ + "IMAGE_VERSION=(?.+)" + ] + }, + { + "fileMatch": [ + "src/grafana/provisioning/datasources/opensearch.yaml$" + ], + "datasourceTemplate": "docker", + "depNameTemplate": "opensearchproject/opensearch", + "matchStrings": [ + "version: (?.+)" + ] + } ] -} \ No newline at end of file +}