Skip to content

Commit

Permalink
Add job to prune containers
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Sep 30, 2024
1 parent c2f943e commit 16d8c71
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/prune-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Prune containers

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * SUN" # every sunday at midnight

jobs:
clean:
runs-on: ubuntu-latest
name: Delete old images
steps:
- uses: snok/[email protected]
with:
account: pulibrary
image-names: figgy
token: ${{ secrets.GITHUB_TOKEN }}
image-tags: "!ci !main"
cut-off: 2w

0 comments on commit 16d8c71

Please sign in to comment.