Skip to content

.github/workflows/docker-cleanup.yml #1724

.github/workflows/docker-cleanup.yml

.github/workflows/docker-cleanup.yml #1724

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