Changes auto-committed by Conductor
This commit is contained in:
parent
edcdea78a2
commit
8741ab82ab
1 changed files with 3 additions and 13 deletions
16
.github/workflows/cleanup-ghcr-untagged.yml
vendored
16
.github/workflows/cleanup-ghcr-untagged.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue