Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@

# Components with no usable release tags are built from a branch, pinned to a
# full commit SHA. An unpinned branch HEAD would reach the weekly release
# unreviewed, and infra deploys this image. Renovate (git-refs) proposes the
# branch's new HEAD as a digest update; the comment's currentValue names the
# branch it follows. git-refs gives no commit dates, so no release-age gate
# applies: these updates are reviewed by hand, in one weekly PR (renovate.json).
# unvetted, and infra deploys this image. Renovate's custom.github-commits
# datasource (renovate.json) lists the branch's commits with their committer
# dates: version=1.0.<date> sorts them in time, so each new commit is held 7
# days like any release before one weekly PR moves version and SHA together
# and automerges on green CI. branch= documents the branch and must be the
# repository's default branch, the one the datasource reads.
# Not tracked by Renovate (no release since 3.6): the tarball is checked
# against this SHA-256. Bump both together.
ARG BITLBEE_VERSION=3.6
Expand All @@ -37,17 +39,17 @@ ARG MAUTRIX_SIGNAL_VERSION=0.2611.0
ARG MAUTRIX_SLACK_VERSION=0.2611.0
# matrix2051 (Matrix client exposed as an IRC server) has no release tags;
# built from main, pinned as above
# renovate: datasource=git-refs depName=progval/matrix2051 packageName=https://github.com/progval/matrix2051 currentValue=main
# renovate: datasource=custom.github-commits depName=progval/matrix2051 branch=main version=1.0.20260811200138
ARG MATRIX2051_VERSION=ef7f1ea7f6a036b0cb34f36fd41d4bdde5d71a7b

# Plugin versions — tracked by Renovate where release tags are available.
# EionRobb plugins (discord, teams, googlechat) only publish nightly-HASH tags, not semver,
# so they are built from master, pinned to a commit SHA as above.
# renovate: datasource=git-refs depName=EionRobb/purple-discord packageName=https://github.com/EionRobb/purple-discord currentValue=master
# renovate: datasource=custom.github-commits depName=EionRobb/purple-discord branch=master version=1.0.20261125001143
ARG PURPLE_DISCORD_VERSION=2b85bbfad5e915f60f2c4ca30c1e7d720762c148
# renovate: datasource=git-refs depName=EionRobb/purple-teams packageName=https://github.com/EionRobb/purple-teams currentValue=master
# renovate: datasource=custom.github-commits depName=EionRobb/purple-teams branch=master version=1.0.20261125062729
ARG PURPLE_TEAMS_VERSION=867346535ffb98d82249bb7f0bc287472a09f286
# renovate: datasource=git-refs depName=EionRobb/purple-googlechat packageName=https://github.com/EionRobb/purple-googlechat currentValue=master
# renovate: datasource=custom.github-commits depName=EionRobb/purple-googlechat branch=master version=1.0.20261110015839
ARG PURPLE_GOOGLECHAT_VERSION=e268cb31cfe1ca1418eaa67030cb58a951365711
# renovate: datasource=github-tags depName=kensanata/bitlbee-mastodon
ARG BITLBEE_MASTODON_VERSION=v1.4.5
Expand Down
39 changes: 31 additions & 8 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,45 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>mbologna/.github//renovate-config.json"],
"extends": [
"github>mbologna/.github//renovate-config.json"
],
"packageRules": [
{
"description": "Plugins pinned to a branch commit (git-refs): the shared preset holds every git-refs update for review; here they come in one PR a week, opened on Saturday or Sunday like the preset's weekly groups, instead of one per upstream commit.",
"matchDatasources": ["git-refs"],
"description": "Plugins pinned to a branch commit (custom.github-commits): each commit is held until it is 7 days old, so a bad or hostile push to an upstream branch has a week to be noticed and reverted before it reaches the image infra deploys; then one PR a week, opened on Saturday or Sunday like the preset's weekly groups, automerged once CI passes. Under git-refs a branch head had no date, so every update waited for a manual review (PR #208, 2026-12-05).",
"matchDatasources": [
"custom.github-commits"
],
"groupName": "plugin branch commits",
"schedule": ["* * * * 0,6"]
"schedule": [
"* * * * 0,6"
],
"minimumReleaseAge": "7 days",
"automerge": true,
"labels": [
"dependencies",
"automerge"
]
}
],
"customManagers": [
{
"description": "ARGs pinned to a branch's commit SHA: currentValue names the branch, the git-refs datasource proposes its new HEAD as a digest update. The preset's Dockerfile manager (customManagers:dockerfileVersions) reads the other '# renovate:' ARGs; it skips these, whose comment carries currentValue=.",
"description": "ARGs pinned to a branch's commit SHA: the '# renovate:' comment above carries datasource=custom.github-commits, the repository, the branch it follows and version=1.0.<committer date of the pinned commit>; the update moves version and SHA to the newest commit old enough. The preset's Dockerfile manager (customManagers:dockerfileVersions) reads the other '# renovate:' ARGs and skips these, whose comment has no plain version ARG after it.",
"customType": "regex",
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
"managerFilePatterns": [
"/(^|/)Dockerfile$/"
],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>git-refs)\\s+depName=(?<depName>[^\\s]+)\\s+packageName=(?<packageName>[^\\s]+)\\s+currentValue=(?<currentValue>[^\\s]+)\\s*\\n(?:#[^\\n]*\\n)?ARG [A-Z0-9_]+=(?<currentDigest>[0-9a-f]{40})\\s"
"#\\s*renovate:\\s*datasource=(?<datasource>custom\\.github-commits)\\s+depName=(?<depName>[^\\s]+)\\s+branch=[^\\s]+\\s+version=(?<currentValue>[^\\s]+)\\s*\\n(?:#[^\\n]*\\n)?ARG [A-Z0-9_]+=(?<currentDigest>[0-9a-f]{40})\\s"
]
}
],
"customDatasources": {
"github-commits": {
"description": "A GitHub repository's default branch, one release per commit, with the date git-refs lacks: version 1.0.<committer date as YYYYMMDDHHMMSS> (sorts in time order, every update a patch), releaseTimestamp the committer date (when the commit reached the branch), digest the commit. The age gate then holds each commit, and the update moves to the newest one old enough. The newest 100 commits, more than these plugins land in a gate's span. Same datasource as mbologna/dotfiles.",
"defaultRegistryUrlTemplate": "https://api.github.com/repos/{{packageName}}/commits?per_page=100",
"transformTemplates": [
"{\"releases\": [$.{\"version\": \"1.0.\" & $replace($substring(commit.committer.date, 0, 19), /[-T:]/, \"\"), \"releaseTimestamp\": commit.committer.date, \"digest\": sha}]}"
]
}
]
}
}