Add drone CI server and runner containers

This commit is contained in:
Francesco Antognazza
2023-02-06 10:12:18 +01:00
parent 9b576d7c60
commit 3aec908b68
4 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
[Unit]
Description=Remove unused podman resources spawned by drone runner
Wants=drone-runner-gc.timer
[Service]
Type=oneshot
ExecStart=/bin/podman system prune --filter label=io.drone=true --volumes -f

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Remove unused podman resources spawned by drone runner
Requires=drone-runner-gc.service
[Timer]
Unit=drone-runner-gc.service
OnCalendar=hourly
RandomizedDelaySec=600
[Install]
WantedBy=timers.target