Merge pull request #6793 from pixelfed/shleeable-patch-8

Cleanup Old Container Images
pull/6794/head
Shlee 4 weeks ago committed by GitHub
commit 3bb77bae53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,26 @@
name: Cleanup Old GHCR Container Images
on:
schedule:
- cron: '30 3 * * 0' # weekly, Sunday 03:30 UTC
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
cleanup:
runs-on: ubuntu-latest
if: github.repository == 'pixelfed/pixelfed'
steps:
- name: Clean up old images
uses: dataaxiom/ghcr-cleanup-action@v1
with:
owner: pixelfed
package: pixelfed
exclude-tags: 'latest,staging,unstable,stable,v*.*.*'
older-than: 6 months
delete-untagged: true
keep-n-tagged: 25
Loading…
Cancel
Save