mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-13 08:46:04 +02:00
Clean up offload-build artifacts tasks and files
This commit is contained in:
parent
3ab6b8890c
commit
db2f6341c4
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
find /home/*/.cache/offload-build/ -mtime +15 -name '*.pkg.tar*' -delete
|
|
@ -0,0 +1,10 @@
|
|||
[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
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Daily offload-build artifacts cleanup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=1d
|
||||
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:
|
||||
|
@ -105,6 +108,7 @@
|
|||
with_items:
|
||||
- clean-chroots.timer
|
||||
- clean-dests.timer
|
||||
- clean-offload-build.timer
|
||||
|
||||
- name: install makepkg.conf
|
||||
template: src=makepkg.conf.j2 dest=/etc/makepkg.conf owner=root group=root mode=0644
|
||||
|
|
Loading…
Reference in New Issue