15 lines
708 B
Django/Jinja
15 lines
708 B
Django/Jinja
[Unit]
|
|
Description=Docker prune for Gitea runner resources
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=DOCKER_HOST=unix:///run/user/{{ gitea_runner_uid }}/docker.sock
|
|
Environment=XDG_RUNTIME_DIR=/run/user/{{ gitea_runner_uid }}
|
|
# Implements: REQ-1/REQ-2 (GRM-173) — all cleanup goes through the shared
|
|
# scoped cleanup script: only stopped containers, CI job containers excluded
|
|
# (GITEA-ACTIONS-TASK prefix), valid `org.oblachno.lease-until` leases never
|
|
# removed, keep-images retained. The historical inline logic here killed
|
|
# active molecule converges ("No such container", infra nightly run 5710)
|
|
# and CI jobs ("RWLayer is unexpectedly nil").
|
|
ExecStart={{ gitea_runner_cleanup_script_path }} --tier routine
|