From 9a4f11d891fc9bf50eb0bbf8c7c80fa8cd8af456 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Tue, 31 Dec 2024 13:21:11 +0100 Subject: [PATCH] Configure Renovate regex manager for Go toolchain in Dockerfile --- Dockerfile | 3 ++- renovate.json | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f036a8f9..f57cd031 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && mkdir -p /app/.config -RUN curl -fsSL -o go.tar.gz https://go.dev/dl/go1.23.2.linux-${TARGETARCH}.tar.gz \ +ARG GO_VERSION=1.23.2 +RUN curl -fsSL -o go.tar.gz https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz \ && tar -C /usr/local -xzf go.tar.gz \ && rm go.tar.gz \ && go version diff --git a/renovate.json b/renovate.json index 41ea6905..d5a04d7e 100644 --- a/renovate.json +++ b/renovate.json @@ -22,6 +22,13 @@ "botocore" ], "regexManagers": [ + { + "fileMatch": ["^Dockerfile$"], + "matchStrings": ["ARG GO_VERSION=(?.*?)\\n"], + "extractVersionTemplate": "^go(?.*)$", + "datasourceTemplate": "github-tags", + "depNameTemplate": "golang/go" + }, { "fileMatch": ["^Dockerfile$"], "matchStrings": ["ARG KUSTOMIZE_VERSION=(?.*?)\\n"],