more flexible config

This commit is contained in:
Lilian 2025-07-01 15:51:06 -04:00
parent 03cdc2c155
commit ef43e005d8
3 changed files with 101 additions and 3 deletions

21
forgejo-runner@.service Normal file
View file

@ -0,0 +1,21 @@
[Unit]
Description=Forgejo Runner %I
Documentation=https://forgejo.org/docs/latest/admin/actions/
After=podman.service podman.socket network-online.target
Wants=podman.service
[Service]
ExecStart=forgejo-runner daemon --config /etc/forgejo-actions/config-%i.yml
ExecReload=/bin/kill -s HUP $MAINPID
Environment="DOCKER_HOST=unix:///run/podman/podman.sock"
# This user and working directory must already exist
User=runner
WorkingDirectory=/home/runner
Restart=on-failure
TimeoutSec=0
RestartSec=10
[Install]
WantedBy=multi-user.target