Skip to content

delete-only-untagged-versions seems to eat also manifests of tagged versions #162

Open
@jan-kiszka

Description

@jan-kiszka

It looks to me like we just lost several historic container releases over at https://github.com/siemens/kas due to this action - or my wrong usage of it - and I like to understand the reason.

This is what we had in our pipeline for the last days, purging already hundreds of untagged containers:

      - name: Purge oldest untagged kas images
        uses: actions/delete-package-versions@v5
        with:
          package-name: kas/kas
          package-type: container
          min-versions-to-keep: 10
          delete-only-untagged-versions: true
      - name: Purge oldest untagged kas-isar images
        uses: actions/delete-package-versions@v5
        with:
          package-name: kas-isar
          package-type: container
          min-versions-to-keep: 10
          delete-only-untagged-versions: true

But now we also lost some containers that still appear with their tags, e.g. https://github.com/siemens/kas/pkgs/container/kas%2Fkas/9259655?tag=2.6, but can't be pulled anymore:

$ podman pull ghcr.io/siemens/kas/kas:2.6
Trying to pull ghcr.io/siemens/kas/kas:2.6...
Error: copying system image from manifest list: determining manifest MIME type for docker://ghcr.io/siemens/kas/kas:2.6: reading manifest sha256:af8ae21cf50cf218f79d0eb7dbf2048cdb692bfccfa958583a7fe63e2e3860e1 in ghcr.io/siemens/kas/kas: manifest unknown

I've restored many already from local copies, but I'm missing kas:2.6, and all the affected non-x86 variants are also lost now.

Any idea what could have caused this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions