Added workflow to delete untagged images.
This commit is contained in:
22
.github/workflows/delete-untagged-images.yml
vendored
Normal file
22
.github/workflows/delete-untagged-images.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Delete untagged GHCR images
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Run manually from the Actions tab
|
||||
|
||||
jobs:
|
||||
cleanup:
|
||||
name: Delete all untagged images
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Delete untagged GHCR images
|
||||
uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: "umami" # 👈 change if your GHCR package name differs
|
||||
package-type: "container"
|
||||
delete-only-untagged-versions: true
|
||||
min-versions-to-keep: 0
|
||||
Reference in New Issue
Block a user