Skip to content

Delete old container images #22

Delete old container images

Delete old container images #22

Workflow file for this run

name: Delete old container images
on:
workflow_dispatch:
push:
tags:
- '*.*'
- '*.*.*'
jobs:
clean-ghcr:
name: Delete old unused container images
runs-on: ubuntu-latest
steps:
- name: Delete old images
uses: snok/container-retention-policy@v2
with:
image-names: ${{ github.event.repository.name }}
cut-off: 1 week ago UTC
untagged-only: true
keep-at-least: 1
account-type: personal
token: ${{ secrets.GHCR_CLEAN_PAT }}