1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/gitlab_runner/files/gitlab-runner-docker-cleanup.service

8 lines
272 B
SYSTEMD

[Unit]
Description=Cleanup containers, images and volumes produced by GitLab Runner
[Service]
Type=oneshot
ExecStart=docker system prune --force --filter label=com.gitlab.gitlab-runner.managed=true --volumes
ExecStart=docker image prune --all --force --filter until=168h