From 57c844fc35701dee7bfc4eba0e1c0f92567b1c81 Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Fri, 30 Oct 2026 06:59:58 +0800 Subject: [PATCH] dry run cleanup dangling --- .github/workflows/cleanup-dangling-images.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cleanup-dangling-images.yml diff --git a/.github/workflows/cleanup-dangling-images.yml b/.github/workflows/cleanup-dangling-images.yml new file mode 100644 index 000000000..1e6007ce8 --- /dev/null +++ b/.github/workflows/cleanup-dangling-images.yml @@ -0,0 +1,26 @@ +name: Cleanup dangling container images + +on: + push: + branches: + - bulk-cleanup-ghcr + +# Run the two cleanup workflows one at a time. +concurrency: + group: ghcr-images + cancel-in-progress: false + +jobs: + cleanup: + runs-on: ubuntu-latest + timeout-minutes: 120 + permissions: + packages: write + steps: + # Untagged architecture manifests can still belong to a tagged image. + - name: Delete untagged and unreferenced versions + uses: dataaxiom/ghcr-cleanup-action@v1.2.2 + with: + package: xray-core + delete-untagged: true + dry-run: true