Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added workflow to delete untagged images.

Mike Caob152cfe4804b
diff --git a/.github/workflows/delete-untagged-images.yml b/.github/workflows/delete-untagged-images.yml
new file mode 100644
index 000000000..a23a1bd27
--- /dev/null
+++ b/.github/workflows/delete-untagged-images.yml
@@ -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