Skip to content

Prune Registry

Prune Registry #27

name: Prune Registry
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
env:
# For image ghcr.io/foo/bar, it will use 'foo' because of the token, and 'bar' is the project_name
# For more options for configs, see https://github.com/vlaurin/action-ghcr-prune
PROJECT_NAME: viziquer
jobs:
prune-images:
runs-on: ubuntu-latest
steps:
- name: Prune
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
container: ${{ env.PROJECT_NAME }}
dry-run: true # Dry-run first, then change to `false`
keep-younger-than: 0 # days
keep-last: 6
prune-untagged: true