Skip to content

ghcr-retention

ghcr-retention #1198

name: ghcr-retention
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:
jobs:
clean-ghcr:
name: Delete old unused container images
runs-on: ubuntu-latest
steps:
- uses: sondrelg/container-retention-policy@v2
with:
image-names: workstation
cut-off: One week ago UTC
account-type: personal
org-name: beryju
untagged-only: false
token: ${{ secrets.GHCR_CLEANUP_TOKEN }}
skip-tags: latest