Run the runner as root; shorten the workflow

The gitea-runner user had root's podman socket, which is root access anyway, so it bought no
isolation. Run it as root and drop the user, the podman.socket drop-in and the /run/podman
permission workaround.

The workflow publishes in one step with small helpers, and filters assets with awk, which,
unlike grep, does not fail the step when nothing matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V27snor4EJUATK7VoiKne6
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 11:26:52 +00:00
1 parent b0a49de3e6
commit cdc4a84658
6 files changed
+21 -35

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ read -rp "Gitea URL (e.g. https://gitea.example.com): " url
read -rp "Runner registration token: " token
read -rp "Parallel jobs [1]: " capacity
[[ $capacity =~ ^[1-9][0-9]*$ ]] || capacity=1
install -D -m 0640 -g gitea-runner /dev/stdin /var/lib/gitea-runner/runner.env <<ENV
install -D -m 0600 /dev/stdin /var/lib/gitea-runner/runner.env <<ENV
GITEA_RUNNER_NAME=$name
GITEA_INSTANCE_URL=$url
GITEA_RUNNER_REGISTRATION_TOKEN=$token