Merge pull request #6903 from coollabsio/andrasbacsai/cleanup-ghcr-untagged
Add GHCR untagged image cleanup workflow
This commit is contained in:
commit
78d45951c2
1 changed files with 24 additions and 0 deletions
24
.github/workflows/cleanup-ghcr-untagged.yml
vendored
Normal file
24
.github/workflows/cleanup-ghcr-untagged.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cleanup-testing-host:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Delete untagged coolify-testing-host images
|
||||||
|
uses: actions/delete-package-versions@v5
|
||||||
|
with:
|
||||||
|
package-name: 'coolify-testing-host'
|
||||||
|
package-type: 'container'
|
||||||
|
min-versions-to-keep: 0
|
||||||
|
delete-only-untagged-versions: 'true'
|
||||||
Loading…
Reference in a new issue