mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
Create clear-stale-docker-images.yml
This commit is contained in:
22
.github/workflows/clear-stale-docker-images.yml
vendored
Normal file
22
.github/workflows/clear-stale-docker-images.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user