os / os (push) Failing after 2m11s
gitea-runner clones the actions that jobs use with git, so the image needs git-core. With it and Node.js in the job, actions/checkout works, which replaces the hand-written git fetch. gitea-runner.service pulls the image of the linux label before it starts, so the first job after a boot doesn't wait 27 seconds for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.0 KiB
Desktop File
25 lines
1.0 KiB
Desktop File
# gitea-runner.service runs the Gitea Actions runner, which runs each job in a
|
|
# container on root's podman. gitea-runner.path starts it once it is
|
|
# registered. It runs as root: whoever has podman's socket is root anyway.
|
|
#
|
|
# TimeoutStopSec is a bit longer than runner.shutdown_timeout in
|
|
# /etc/gitea-runner/config.yaml, so running jobs can finish on stop.
|
|
[Unit]
|
|
Description=Gitea Actions runner
|
|
Wants=network-online.target
|
|
After=network-online.target podman.socket
|
|
Requires=podman.socket
|
|
|
|
[Service]
|
|
# HOME holds the cache of actions/cache, next to the registration.
|
|
Environment=HOME=/var/lib/gitea-runner
|
|
Environment=DOCKER_HOST=unix:///run/podman/podman.sock
|
|
# ExecStartPre pulls the image of the linux label in
|
|
# /etc/gitea-runner/config.yaml, so the first job after a boot doesn't wait
|
|
# for it. The runner still starts if it fails.
|
|
ExecStartPre=-/usr/bin/podman pull -q quay.io/fedora/fedora:45
|
|
ExecStart=/usr/bin/gitea-runner -c /etc/gitea-runner/config.yaml daemon
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
TimeoutStopSec=65min
|