gen_config: abstract pipeline emitters behind a backend interface #143

Closed
opened 2026-03-24 00:30:59 +00:00 by kert · 0 comments
Owner

Refactor gen_config.py so pipeline generation dispatches by backend.

dev/scripts/backends/woodpecker.py extracts current emitters.
dev/scripts/backends/github.py adds GitHub Actions emitter.

Both implement: emit(images, cfg) -> dict[str, str]

Image definitions, scan policies, tag patterns are backend-agnostic. Only the YAML structure differs.

Refactor gen_config.py so pipeline generation dispatches by backend. dev/scripts/backends/woodpecker.py extracts current emitters. dev/scripts/backends/github.py adds GitHub Actions emitter. Both implement: emit(images, cfg) -> dict[str, str] Image definitions, scan policies, tag patterns are backend-agnostic. Only the YAML structure differs.
kert added this to the P19: CI Backend Abstraction — switchable Woodpecker / GitHub Actions milestone 2026-03-24 00:30:59 +00:00
kert added the configci labels 2026-03-24 00:30:59 +00:00
kert closed this issue 2026-03-24 00:41:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#143