Skip to content

Delete old container images #10

Delete old container images

Delete old container images #10

name: Delete old container images
on:
schedule:
- cron: "0 0 1 * *" # every day at midnight
jobs:
clean-ghcr:
name: GHCR cleanup
runs-on: ubuntu-22.04
steps:
- name: Delete all untagged Hotfixes older than 6 months
uses: snok/container-retention-policy@v2
with:
image-names: ceph
image-tags: hotfix-*
cut-off: 6months
timestamp-to-use: updated_at
untagged-only: true
account-type: org
org-name: canonical
token: ${{ secrets.GITHUB_TOKEN }}
token-type: github-token