Skip to content

Workflow file for this run

on:
schedule:
- cron: '50 11 * * 4'
push:
paths:
- '.github/workflows/cleanup.yml'
env:
IMAGE_NAME: ${{ github.repository }}
name: Cleanup old container images
jobs:
cleanup-old-container-images:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: ${{ env.IMAGE_NAME }}
package-type: 'container'
min-versions-to-keep: 30
delete-only-untagged-versions: 'true'
ignore-versions: ^v.*