renovate(role): add cleanup service and timer for renovate volume
All checks were successful
/ Ansible Lint (push) Successful in 2m25s
All checks were successful
/ Ansible Lint (push) Successful in 2m25s
With time the volume seems to just keeps growing with cache data, so clean it up once a day.
This commit is contained in:
parent
b0347d64bf
commit
6b19f69135
3 changed files with 29 additions and 16 deletions
7
roles/renovate/files/renovate-cleanup.service
Normal file
7
roles/renovate/files/renovate-cleanup.service
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=renovate cleanup (delete docker volume)
|
||||
Conflicts=renovate.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/docker volume rm renovate
|
||||
9
roles/renovate/files/renovate-cleanup.timer
Normal file
9
roles/renovate/files/renovate-cleanup.timer
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=renovate cleanup (delete docker volume) running daily
|
||||
|
||||
[Timer]
|
||||
# @daily with 10 minute offset
|
||||
OnCalendar=*-*-* 00:10
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue