Skip to content

Merge pull request #727 from Pixilib/fixci #93

Merge pull request #727 from Pixilib/fixci

Merge pull request #727 from Pixilib/fixci #93

name: 'clean-packages'
on:
push:
branches:
- '*'
jobs:
build:
name: 'Remove old untagged containers'
runs-on: ubuntu-latest
steps:
- name: 'Build checkout'
uses: actions/checkout@v4
- name: Login to github registery
uses: docker/login-action@v3
with:
registry: ghcr.io
username: 'salimkanoun'
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/delete-package-versions@v5
with:
package-name: 'gaelo'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
permissions:
contents: read
packages: write