Skip to content

ci: add a cleanup for the images #1

ci: add a cleanup for the images

ci: add a cleanup for the images #1

Workflow file for this run

name: Cleaner
on:
workflow_dispatch:
# schedule:
# - cron: "0 0 * * *"
pull_request:
branches:
- "dev"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
cleanup:
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/delete-package-versions@v5

Check failure on line 24 in .github/workflows/cleanup.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cleanup.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
with:
package-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
package-type: docker
min-versions-to-keep: 10
ignore-versions: '(v\d+\.\d+\.\d+|latest)'