Skip to content

Commit

Permalink
Merge pull request #1073 from projectsyn/deps/renovate-dockerfile-go
Browse files Browse the repository at this point in the history
Configure Renovate regex manager for Go toolchain in Dockerfile
  • Loading branch information
simu authored Dec 31, 2024
2 parents 16ae5b8 + 473391d commit 5269e68
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 5269e68

Please sign in to comment.