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:
1 parent
b0a49de3e6
commit
cdc4a84658
6 files changed
+21
-35
No files matched your search
@@ -1,9 +1,6 @@
|
||||
# The runner's directories, and a clean container storage on every boot.
|
||||
# Home directory; holds the registration (.runner) and the actions cache.
|
||||
d /var/lib/gitea-runner 0700 gitea-runner gitea-runner -
|
||||
# podman's own line makes this 0700; the runner needs to reach podman.sock inside (podman.socket.d).
|
||||
# This file sorts before podman.conf, so its line wins.
|
||||
D! /run/podman 0750 root gitea-runner -
|
||||
# State: holds the registration (.runner) and the actions cache.
|
||||
d /var/lib/gitea-runner 0700 root root -
|
||||
# Wipe all job containers, volumes and images on every boot. The shared base images
|
||||
# (/var/lib/containers/base-images) stay; gitea-runner-images.service updates them.
|
||||
R /var/lib/containers/storage
|
||||
Reference in new issue
Block a user