Skip to content

Commit

Permalink
Configure Renovate regex manager for Go toolchain in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Dec 31, 2024
1 parent 54d049a commit 9a4f11d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
"botocore"
],
"regexManagers": [
{
"fileMatch": ["^Dockerfile$"],
"matchStrings": ["ARG GO_VERSION=(?<currentValue>.*?)\\n"],
"extractVersionTemplate": "^go(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go"
},
{
"fileMatch": ["^Dockerfile$"],
"matchStrings": ["ARG KUSTOMIZE_VERSION=(?<currentValue>.*?)\\n"],
Expand Down

0 comments on commit 9a4f11d

Please sign in to comment.