Skip to content

Commit

Permalink
added delete untagged image action
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Jan 30, 2024
1 parent 1a1d2aa commit 4b8a391
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/delete-untagged-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cleanup Untagged Images

on:
# every sunday at 00:00
schedule:
- cron: "0 0 * * SUN"
# or manually
workflow_dispatch:

jobs:
delete-untagged-images:
name: Delete Untagged Images
runs-on: ubuntu-latest
steps:
- uses: bots-house/[email protected]
with:
# NOTE: at now only orgs is supported
owner: bots-house
name: some-web-service
# NOTE: using Personal Access Token
token: ${{ secrets.PAT }}
# Keep latest N untagged images
untagged-keep-latest: 3

0 comments on commit 4b8a391

Please sign in to comment.