.github/workflows/docker-cleanup.yml #1713
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "5 * * * *" # every hour | |
jobs: | |
clean: | |
runs-on: ubuntu-latest | |
name: Delete old test images | |
steps: | |
- uses: snok/[email protected] | |
with: | |
account: user | |
token: ${{ secrets.PAT }} | |
image-names: "scotty" | |
image-tags: "!latest !main !v*" # target any image that has a tag starting with the word test or dev | |
cut-off: 2w | |
dry-run: true |