Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configure Renovate regex manager for Go toolchain in Dockerfile #1073

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -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"],
Loading