Skip to content
Snippets Groups Projects
Commit 2d63bc7d authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Merge branch 'ticket_268' into 'master'

Clean up offload-build artifacts tasks and files

Closes #268

See merge request !478
parents 3ab6b889 db2f6341
No related branches found
No related tags found
1 merge request!478Clean up offload-build artifacts tasks and files
Pipeline #11564 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
RandomizedDelaySec=1d
Persistent=true
[Install]
WantedBy=timers.target
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
- pkgdiffrepo - pkgdiffrepo
- clean-chroots - clean-chroots
- clean-dests - clean-dests
- clean-offload-build
- gitpkg - gitpkg
- name: install archbuild config files - name: install archbuild config files
...@@ -41,6 +42,8 @@ ...@@ -41,6 +42,8 @@
- clean-chroots.service - clean-chroots.service
- clean-dests.timer - clean-dests.timer
- clean-dests.service - clean-dests.service
- clean-offload-build.timer
- clean-offload-build.service
- var-lib-archbuilddest.mount - var-lib-archbuilddest.mount
- strictatime@.service - strictatime@.service
notify: notify:
...@@ -105,6 +108,7 @@ ...@@ -105,6 +108,7 @@
with_items: with_items:
- clean-chroots.timer - clean-chroots.timer
- clean-dests.timer - clean-dests.timer
- clean-offload-build.timer
- name: install makepkg.conf - name: install makepkg.conf
template: src=makepkg.conf.j2 dest=/etc/makepkg.conf owner=root group=root mode=0644 template: src=makepkg.conf.j2 dest=/etc/makepkg.conf owner=root group=root mode=0644
......
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