ci: Add a `packages-cleanup` job to clean up `assets` packages not downloaded in the last 7 days
What does this MR do and why?
This adds a packages-cleanup
job to clean up assets
packages that weren't downloaded in the last 7 days. If the package was never downloaded, we keep it for at least 7 days as well.
I took the opportunity to improve a bit the Review Apps automated_cleanup.rb
file, and the job still runs successfully: https://gitlab.com/gitlab-org/gitlab/-/jobs/3126360136
How to set up and validate locally
-
review-cleanup
still pass: https://gitlab.com/gitlab-org/gitlab/-/jobs/3126360136 -
packages-cleanup
passes (need to setCACHE_ASSETS_AS_PACKAGE
totrue
): https://gitlab.com/gitlab-org/gitlab/-/jobs/3127029638
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #375606 (closed)
Edited by Rémy Coutable