infra/forgejo: give the LAN runner's PATH ~/.local/bin (#84)
All checks were successful
secrets-guard / encrypted (push) Successful in 5s
shell-lint / shellcheck (push) Successful in 6s

This commit is contained in:
emi 2026-07-25 06:59:21 +00:00
parent a4ecb51401
commit 2c7ceefab4

View file

@ -82,6 +82,11 @@ After=network-online.target
[Service] [Service]
WorkingDirectory=${RUNNER_DIR} WorkingDirectory=${RUNNER_DIR}
# CI job steps shell out to user-installed tools (sops, age, ...) that live in
# ~/.local/bin, not on systemd --user's default PATH. Without this, any
# workflow that needs one (e.g. render-secrets.sh once a host is
# SOPS-configured) fails with "not installed" even though it plainly is.
Environment=PATH=%h/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
ExecStart=${RUNNER_DIR}/forgejo-runner daemon -c config.yaml ExecStart=${RUNNER_DIR}/forgejo-runner daemon -c config.yaml
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5