diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 139a209..f82137f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -57,3 +57,16 @@ jobs: - name: 🧹 Cleanup local images run: docker image prune -af || true + cleanup-ghcr: + name: 🧽 Cleanup old GHCR images + runs-on: ubuntu-latest + needs: build-and-push + permissions: + packages: write + steps: + - name: 🧹 Delete old GHCR package versions (keep last 5) + uses: actions/delete-package-versions@v5 + with: + package-name: "retroiptvguide" + package-type: "container" + min-versions-to-keep: 5