Skip to content

Commit

Permalink
Add job to cleanup images
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Feb 13, 2024
1 parent e5edc43 commit 96a0579
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cleanup-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Cleanup images

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

jobs:
cleanup-untagged-images:
name: Cleanup untagged images
runs-on: ubuntu-latest
steps:
- name: Delete images
uses: snok/container-retention-policy@v2
with:
image-names: go-acoustid
cut-off: One month ago UTC
untagged-only: true
account-type: org
token: ${{ secrets.GITHUB_TOKEN }}
token-type: github-token

0 comments on commit 96a0579

Please sign in to comment.