caas-team / sparrow

A monitoring tool to gather infrastructure network information
Apache License 2.0
6 stars 4 forks source link

Prune old images and charts #80

Closed lvlcn-t closed 8 months ago

lvlcn-t commented 8 months ago

Is there an existing feature request for this?

Problem Description

The github container registry is getting/will get really big because we're pushing all commit images and charts into it.

In order not to lose clarity we should prune old images and charts.

imageimage

Solution Description

Add a new github action that runs periodically that prunes all images older than 7 days or so.

I've found a github action that can do this, but it's unmaintained. I've linked it below.

Additionally we should think about only packaging and pushing the charts if they've changed.

Who can address the issue?

Everyone who wants to explore github actions.

Additional Context

https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule https://github.com/vlaurin/action-ghcr-prune