Skip to content

Commit 48df2ad

Browse files
DarkaMaulclaude
andauthored
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>
1 parent ab1d7e6 commit 48df2ad

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3333
&& apt-get clean && rm -rf /var/lib/apt/lists/*
3434

3535
# Install git-delta
36+
# renovate: datasource=github-releases depName=dandavison/delta
3637
ARG GIT_DELTA_VERSION=0.18.2
3738
RUN ARCH=$(dpkg --print-architecture) && \
3839
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) && \
4344
COPY --from=uv /uv /usr/local/bin/uv
4445

4546
# Install fzf from GitHub releases (newer than apt, includes built-in shell integration)
47+
# renovate: datasource=github-releases depName=junegunn/fzf
4648
ARG FZF_VERSION=0.70.0
4749
RUN ARCH=$(dpkg --print-architecture) && \
4850
case "${ARCH}" in \
@@ -94,6 +96,7 @@ RUN curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "$FNM_D
9496
fnm default ${NODE_VERSION}
9597

9698
# Install Oh My Zsh
99+
# renovate: datasource=github-releases depName=deluan/zsh-in-docker
97100
ARG ZSH_IN_DOCKER_VERSION=1.2.1
98101
RUN sh -c "$(curl -fsSL https://github.com/deluan/zsh-in-docker/releases/download/v${ZSH_IN_DOCKER_VERSION}/zsh-in-docker.sh)" -- \
99102
-p git \

renovate.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"schedule": ["before 9am on monday"],
5+
"minimumReleaseAge": "7 days",
6+
"packageRules": [
7+
{
8+
"description": "Group all updates into a single PR",
9+
"matchPackageNames": ["*"],
10+
"groupName": "all dependencies",
11+
"groupSlug": "all"
12+
}
13+
],
14+
"customManagers": [
15+
{
16+
"customType": "regex",
17+
"description": "Update ARG versions in Dockerfile from GitHub releases",
18+
"fileMatch": ["(^|/)Dockerfile$"],
19+
"matchStrings": [
20+
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)\\n(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\n"
21+
],
22+
"extractVersionTemplate": "^v?(?<version>.+)$"
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)