Changes auto-committed by Conductor (#6916)
This commit is contained in:
parent
ab7bd46e56
commit
691fdffa8b
1 changed files with 7 additions and 6 deletions
13
.github/workflows/cleanup-ghcr-untagged.yml
vendored
13
.github/workflows/cleanup-ghcr-untagged.yml
vendored
|
|
@ -1,24 +1,25 @@
|
||||||
name: Cleanup Untagged GHCR Images
|
name: Cleanup Untagged GHCR Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allow manual trigger
|
workflow_dispatch: # Manual trigger only
|
||||||
schedule:
|
|
||||||
- cron: '0 */6 * * *' # Run every 6 hours to handle large volume (16k+ images)
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_REGISTRY: ghcr.io
|
GITHUB_REGISTRY: ghcr.io
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-testing-host:
|
cleanup-all-packages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
package: ['coolify', 'coolify-helper', 'coolify-realtime', 'coolify-testing-host']
|
||||||
steps:
|
steps:
|
||||||
- name: Delete untagged coolify-testing-host images
|
- name: Delete untagged ${{ matrix.package }} images
|
||||||
uses: actions/delete-package-versions@v5
|
uses: actions/delete-package-versions@v5
|
||||||
with:
|
with:
|
||||||
package-name: 'coolify-testing-host'
|
package-name: ${{ matrix.package }}
|
||||||
package-type: 'container'
|
package-type: 'container'
|
||||||
min-versions-to-keep: 0
|
min-versions-to-keep: 0
|
||||||
delete-only-untagged-versions: 'true'
|
delete-only-untagged-versions: 'true'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue