Skip to content

Commit

Permalink
Create prune.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmspam authored May 10, 2024
1 parent e36c6e3 commit d128c2f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prune.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prune Old Container Images

on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC

jobs:
prune-container-registry:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Prune old container images
uses: vlaurin/action-ghcr-prune@v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: cmspam
container: incus-docker
dry-run: false
keep-younger-than: 1 # days
keep-last: 1
prune-untagged: true

0 comments on commit d128c2f

Please sign in to comment.