mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added workflow to delete untagged images.
This commit is contained in:
parent
abc02465e3
commit
b152cfe480
1 changed files with 22 additions and 0 deletions
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue