Skip to content

Purge untagged images #105

Purge untagged images

Purge untagged images #105

name: Purge untagged images
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#registry_package
# Run cleanup job if a new package was published or updated
on:
registry_package:
jobs:
purge_untagged_images:
runs-on: ubuntu-latest
steps:
- name: clean packages
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GHCR_TOKEN}}
organization: ${{ github.repository_owner}}
container: ${{ secrets.GHCR_IMAGE_NAME }}
untagged: true