Skip to content

Prune Registry

Prune Registry #5

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/action-ghcr-prune@v0.5.0
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