Reapply "chore: garbage collect now, not in 3 days (#153)" (#154)

This reverts commit 4582df6979.
This commit is contained in:
Ethan Mosbaugh
2024-10-09 06:22:17 -07:00
parent 32f12b8666
commit ede363e4e8

View File

@@ -1,7 +1,10 @@
#!/bin/sh
echo "Script started"
while true; do
sleep 72h # every 3 days
echo "Starting garbage collection..."
registry garbage-collect /etc/docker/registry/config.yml || true
echo "Garbage collection finished"
sleep 72h # every 3 days
done