From b260608c655b9e1226fa3711841d81adda8b1d7b Mon Sep 17 00:00:00 2001 From: Ryan Boehning <1250684+ryboe@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:52:55 -0800 Subject: [PATCH] feat: clean up untagged images Add GHA workflow that runs once a week on Sunday at midnight UTC and deletes all untagged images. --- .github/workflows/cleanup.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..75fb771 --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,20 @@ +name: Clean Up Untagged Images + +on: + schedule: + - cron: 0 0 * * 0 # run at midnight every sunday + workflow_dispatch: + +jobs: + cleanup_untagged_images: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - name: Delete untagged images + uses: actions/delete-package-versions@v5 + with: + package-name: ${{ github.event.repository.name }} + package-type: container + delete-only-untagged-versions: true + min-versions-to-keep: 0