From edcdea78a289bdc467ea22002cb59821d502a76b Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:30:43 +0200 Subject: [PATCH 1/2] Changes auto-committed by Conductor --- .github/workflows/cleanup-ghcr-untagged.yml | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/cleanup-ghcr-untagged.yml diff --git a/.github/workflows/cleanup-ghcr-untagged.yml b/.github/workflows/cleanup-ghcr-untagged.yml new file mode 100644 index 000000000..2e45a1619 --- /dev/null +++ b/.github/workflows/cleanup-ghcr-untagged.yml @@ -0,0 +1,34 @@ +name: Cleanup Untagged GHCR Images + +on: + workflow_dispatch: # Allow manual trigger + schedule: + - cron: '0 */6 * * *' # Run every 6 hours to handle large volume (16k+ images) + +env: + GITHUB_REGISTRY: ghcr.io + IMAGE_NAME: "coollabsio/coolify" + +jobs: + cleanup: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + strategy: + matrix: + # Run 5 batches in parallel (5 x 100 = 500 versions per run) + batch: [1, 2, 3, 4, 5] + steps: + - name: Delete untagged images (batch ${{ matrix.batch }}) + uses: actions/delete-package-versions@v5 + with: + package-name: 'coolify' + package-type: 'container' + min-versions-to-keep: 0 + delete-only-untagged-versions: 'true' + continue-on-error: true # Continue even if some batches fail + + - name: Wait between batches + if: matrix.batch < 5 + run: sleep 10 From 8741ab82abc3f3f30e57fc16cac1bc69d850ef2d Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:39:08 +0200 Subject: [PATCH 2/2] Changes auto-committed by Conductor --- .github/workflows/cleanup-ghcr-untagged.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cleanup-ghcr-untagged.yml b/.github/workflows/cleanup-ghcr-untagged.yml index 2e45a1619..1ad41ce16 100644 --- a/.github/workflows/cleanup-ghcr-untagged.yml +++ b/.github/workflows/cleanup-ghcr-untagged.yml @@ -7,28 +7,18 @@ on: env: GITHUB_REGISTRY: ghcr.io - IMAGE_NAME: "coollabsio/coolify" jobs: - cleanup: + cleanup-testing-host: runs-on: ubuntu-latest permissions: contents: read packages: write - strategy: - matrix: - # Run 5 batches in parallel (5 x 100 = 500 versions per run) - batch: [1, 2, 3, 4, 5] steps: - - name: Delete untagged images (batch ${{ matrix.batch }}) + - name: Delete untagged coolify-testing-host images uses: actions/delete-package-versions@v5 with: - package-name: 'coolify' + package-name: 'coolify-testing-host' package-type: 'container' min-versions-to-keep: 0 delete-only-untagged-versions: 'true' - continue-on-error: true # Continue even if some batches fail - - - name: Wait between batches - if: matrix.batch < 5 - run: sleep 10