feat: add Renovate config to keep Dockerfile updated (#38)

Add renovate.json with a custom regex manager that picks up
`# renovate:` comment directives on ARG lines. This covers:
- Docker base images (handled natively by Renovate's dockerfile manager)
- git-delta, fzf, and zsh-in-docker versions via github-releases

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dm
2026-04-09 13:23:28 +02:00
committed by GitHub
parent ab1d7e6e4b
commit 48df2ad80d
2 changed files with 28 additions and 0 deletions
+3
View File
@@ -33,6 +33,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install git-delta
# renovate: datasource=github-releases depName=dandavison/delta
ARG GIT_DELTA_VERSION=0.18.2
RUN ARCH=$(dpkg --print-architecture) && \
curl -fsSL "https://github.com/dandavison/delta/releases/download/${GIT_DELTA_VERSION}/git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" -o /tmp/git-delta.deb && \
@@ -43,6 +44,7 @@ RUN ARCH=$(dpkg --print-architecture) && \
COPY --from=uv /uv /usr/local/bin/uv
# Install fzf from GitHub releases (newer than apt, includes built-in shell integration)
# renovate: datasource=github-releases depName=junegunn/fzf
ARG FZF_VERSION=0.70.0
RUN ARCH=$(dpkg --print-architecture) && \
case "${ARCH}" in \
@@ -94,6 +96,7 @@ RUN curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "$FNM_D
fnm default ${NODE_VERSION}
# Install Oh My Zsh
# renovate: datasource=github-releases depName=deluan/zsh-in-docker
ARG ZSH_IN_DOCKER_VERSION=1.2.1
RUN sh -c "$(curl -fsSL https://github.com/deluan/zsh-in-docker/releases/download/v${ZSH_IN_DOCKER_VERSION}/zsh-in-docker.sh)" -- \
-p git \
+25
View File
@@ -0,0 +1,25 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"schedule": ["before 9am on monday"],
"minimumReleaseAge": "7 days",
"packageRules": [
{
"description": "Group all updates into a single PR",
"matchPackageNames": ["*"],
"groupName": "all dependencies",
"groupSlug": "all"
}
],
"customManagers": [
{
"customType": "regex",
"description": "Update ARG versions in Dockerfile from GitHub releases",
"fileMatch": ["(^|/)Dockerfile$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)\\n(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\n"
],
"extractVersionTemplate": "^v?(?<version>.+)$"
}
]
}