Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
db2f6341
Commit
db2f6341
authored
Aug 09, 2021
by
Benedict Baskar
Committed by
Kristian Klausen
Oct 02, 2021
Browse files
Clean up offload-build artifacts tasks and files
parent
3ab6b889
Changes
4
Hide whitespace changes
Inline
Side-by-side
roles/archbuild/files/clean-offload-build
0 → 100755
View file @
db2f6341
#!/bin/bash -e
find /home/
*
/.cache/offload-build/
-mtime
+15
-name
'*.pkg.tar*'
-delete
roles/archbuild/files/clean-offload-build.service
0 → 100644
View file @
db2f6341
[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
roles/archbuild/files/clean-offload-build.timer
0 → 100644
View file @
db2f6341
[Unit]
Description=Daily offload-build artifacts cleanup
[Timer]
OnCalendar=daily
RandomizedDelaySec=1d
Persistent=true
[Install]
WantedBy=timers.target
roles/archbuild/tasks/main.yml
View file @
db2f6341
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment