Skip to content

Commit

Permalink
chore: cleanup untagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
tataranovich committed Nov 13, 2024
1 parent 617fbf8 commit f18badb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cleanup-untagged-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Cleanup untagged images

on:
schedule:
- cron: "0 0 * * *"

jobs:
clean:
name: Delete untagged images
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0
with:
account: ${{ github.repository_owner }}
token: ${{ secrets.GITHUB_TOKEN }}
image-names: ${{ github.event.repository.name }}
tag-selection: "untagged"
cut-off: "1d"

0 comments on commit f18badb

Please sign in to comment.