Skip to content
Snippets Groups Projects
Commit f94b8aa2 authored by Benedict Baskar's avatar Benedict Baskar
Browse files

Clean up offload-build artifacts tasks and files

parent b53b8eaf
No related branches found
No related tags found
No related merge requests found
Pipeline #10283 passed
#!/bin/bash -e
find /home/*/.cache/offload-build/ -mtime +15 -name '*.pkg.tar*' -delete
[Unit]
Description=Clean up offload-build artifacts
After=var-lib-archbuild.mount
[Service]
Type=oneshot
ExecStart=/usr/local/bin/clean-offload-build
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
[Unit]
Description=Daily offload-build artifacts cleanup
[Timer]
OnCalendar=daily
AccuracySec=24h
Persistent=true
[Install]
WantedBy=timers.target
......@@ -27,6 +27,7 @@
- pkgdiffrepo
- clean-chroots
- clean-dests
- clean-offload-build
- gitpkg
- name: install archbuild config files
......@@ -41,6 +42,8 @@
- clean-chroots.service
- clean-dests.timer
- clean-dests.service
- clean-offload-build.timer
- clean-offload-build.service
- var-lib-archbuilddest.mount
- strictatime@.service
notify:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment