Skip to content

Commit

Permalink
ci: add a cleanup for the images
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Oct 2, 2024
1 parent 82089ed commit fc8f277
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cleaner

on:
workflow_dispatch:
# schedule:
# - cron: "0 0 * * *"
pull_request:
branches:
- "dev"

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/delete-package-versions@v5
with:
package-name: barelyhuman/goblin
package-type: container
num-old-versions-to-delete: 10
ignore-versions: '(v?\d+\.\d+\.\d+|latest|(nightly[-]\w+))'

0 comments on commit fc8f277

Please sign in to comment.