Skip to content

Remove untagged images from registry #254

Remove untagged images from registry

Remove untagged images from registry #254

name: Remove untagged images from registry
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
PACKAGE_NAME: docker-event-monitor
jobs:
Delete_untagged_images:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: Delete all images from repository without tags
uses: Chizkiyahu/[email protected]
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: ${{ env.PACKAGE_NAME }}
untagged_only: true
owner_type: user
except_untagged_multiplatform: true