A continuation of HomeBox the inventory and organization system built for the Home User
Create clear-stale-docker-images.yml
Matt Kilgore5bdaac74cd63
diff --git a/.github/workflows/clear-stale-docker-images.yml b/.github/workflows/clear-stale-docker-images.ymlnew file mode 100644index 00000000..4f4da6b2--- /dev/null+++ b/.github/workflows/clear-stale-docker-images.yml@@ -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