Skip to content

Purge GitHub container registry. #193

Purge GitHub container registry.

Purge GitHub container registry. #193

Workflow file for this run

name: Purge GitHub container registry.
on:
workflow_dispatch:
# Runs daily at midnight
schedule:
- cron: '0 0 * * *'
jobs:
purge-images:
name: Delete old untagged images from ghcr.io
runs-on: ubuntu-latest
steps:
- name: Delete all PR containers older than a day
uses: snok/container-retention-policy@v2
with:
image-names: verapdf-rest*
cut-off: 1 week ago UTC
account-type: org
org-name: veraPDF
keep-at-least: 1
untagged-only: false
token: ${{ secrets.PAT }}