Skip to content

nixbot: per-repository build stores - #287

Merged
gitea-mq[bot] merged 1 commit into
Mic92:mainfrom
numtide:phaer/build-store-per-repo
Nov 10, 2026
Merged

gitea-mq[bot] merged 1 commit into
Mic92:mainfrom
numtide:phaer/build-store-per-repo

Conversation

@phaer

@phaer phaer commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

buildStore is instance-wide, so a project whose builds belong in a different store - a tribuchet hub, say - needs a second nixbot, with its own forge app, token, DNS entry and database.

Let one instance route per repository instead: build_stores entries carry the repositories they serve ("owner/repo" or an fnmatch pattern) and are consulted before the instance-wide build_store, which keeps serving everything unmatched. Both paths that reach a store -- IFD during evaluation and the attribute builds themselves -- resolve it from the event's repository.

The routing stays service-side on purpose: a repository picking its own build store could redirect builds, and the per-build credential with them, to a host its contributors control.

Assisted-By: Claude Code (Opus 5.5)

@Mic92
Mic92 force-pushed the phaer/build-store-per-repo branch 2 times, most recently from 88e67ef to f0af5fb Compare November 10, 2026 11:53
buildStore is instance-wide, so a project whose builds belong in a
different store -- a tribuchet hub, say -- needs a second nixbot, with
its own forge app, token, DNS entry and database.

Let one instance route per repository instead: `build_stores` entries
carry the repositories they serve ("owner/repo" or an fnmatch pattern)
and are consulted before the instance-wide `build_store`, which keeps
serving everything unmatched. Both paths that reach a store -- IFD
during evaluation and the attribute builds themselves -- resolve it
from the event's repository.

The routing stays service-side on purpose: a repository picking its own
build store could redirect builds, and the per-build credential with
them, to a host its contributors control.

Change-Id: I2109166f480a39fc944cba521b3223fb1dbab2c0
Assisted-By: Claude Code (Opus 5.5)
@Mic92
Mic92 force-pushed the phaer/build-store-per-repo branch from f0af5fb to bd69b44 Compare November 10, 2026 11:55
@Mic92
Mic92 enabled auto-merge November 10, 2026 11:55
@gitea-mq
gitea-mq Bot merged commit ddeaa60 into Mic92:main Nov 10, 2026
7 checks passed
@gitea-mq gitea-mq Bot added mq/waiting and removed mq/waiting labels Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant