Create clear-stale-docker-images.yml

This commit is contained in:
Matt Kilgore
2025-01-03 19:44:49 -05:00
committed by GitHub
parent 2b4ad9356d
commit 5bdaac74cd

View File

@@ -0,0 +1,22 @@
name: Docker Cleanup
on:
schedule:
- cron: '00 0 * * *'
jobs:
delete-untagged-images:
name: Delete Untagged Images
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
dry-run: true
package: homebox
delete-ghost-images: true
delete-orphaned-images: true
# Make sure to update this to include the latest major tags
exclude-tags: main,vnext,latest,0.*,1.*
older-than: 3 months