Cleanup Untagged Images #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.GITHUB_TOKEN }} | |
# Keep latest N untagged images | |
untagged-keep-latest: 3 |