feat(gitea_runner): add the gitea_runner role
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 50s
Molecule / molecule (pull_request) Failing after 1m10s

Copied from the maintainer's local role and reworked for the Collection:
the binary swap and rollback of an update go through the internal
_binary_update role, input checks move to tasks/validate.yml, the
removal ends the role, commands take argv, and the molecule tooling
needs an explicit collections requirements file. Adds a molecule
scenario with stub Docker, runner and release files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-22 16:26:49 +00:00
1 parent 3ed614e00e
commit e296eea609
28 files changed
+1988 -3

No files matched your search

@@ -0,0 +1,10 @@
---
minor_changes:
- >-
gitea_runner - New role. Installs a Gitea Actions runner (``gitea-runner``) with Docker as a systemd service, with a
sha256-verified binary, registers it with a token minted on a Gitea host (optionally scoped to an owner or
repository), renders ``config.yaml``, and optionally schedules a weekly Docker prune that skips while a job runs,
installs pinned molecule test tooling behind a host-executor label, and removes the runner on request. With
``gitea_runner_update`` it downloads and verifies a new release before stopping anything and swaps it in through
the internal ``_binary_update`` role, with rollback on failure. A forced re-registration mints the new token before
it touches the current registration and is refused under CI.