Skip to content

Commit

Permalink
ci: delete nightly images older than 6 months
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Jan 18, 2025
1 parent 89e6d1a commit ada9a64
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docker-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,21 @@ jobs:
package: docker-pixelfed
# dry-run: true
delete-tags: "pr-*,branch-*"
delete-untagged: false
exclude-tags: "branch-main-*"
older-than: 2 weeks

# See: https://github.com/dataaxiom/ghcr-cleanup-action?tab=readme-ov-file#action-options
- name: Delete PR + Branch images
uses: dataaxiom/ghcr-cleanup-action@v1
with:
token: ${{ secrets.GH_CLEANUP_PAT }}
package: docker-pixelfed
dry-run: true
delete-tags: "nightly-"
delete-untagged: false
older-than: 6 months

# See: https://github.com/dataaxiom/ghcr-cleanup-action?tab=readme-ov-file#action-options
# - name: Delete branch images
# uses: dataaxiom/ghcr-cleanup-action@v1
Expand Down

0 comments on commit ada9a64

Please sign in to comment.