-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action produces large number of untagged images #1323
Comments
I was hoping when I read this title, my issue would have a solution here. I pushed an image, and I just cleared out two full pages of tagless images. |
There should be an untagged manifests left behind assuming the new build is different. Tag-less stick around until you delete them on GHCR. Other registries might just hide them like Docker Hub. Also can you show the logs of |
Sure thing, here is mine: https://github.com/Aetherinox/docker-base-alpine/pkgs/container/alpine-base Here is the last executed workflow: https://github.com/Aetherinox/docker-base-alpine/actions/runs/13527171597 Right now I've been playing with settings, and I still have two tagless SHA being generated: provenance: false
sbom: false Your action is executed in the steps labeled:
Workflow source: https://raw.githubusercontent.com/Aetherinox/docker-base-alpine/refs/heads/docker/alpine-base/.github/workflows/deploy-docker-github.yml |
@Aetherinox Thanks So looking at previous jobs: https://github.com/Aetherinox/docker-base-alpine/actions/workflows/deploy-docker-github.yml Like It builds and push: https://github.com/Aetherinox/docker-base-alpine/actions/runs/13527105896/job/37800374191#step:13:437
So:
We can see both of them in untagged as expected: https://github.com/Aetherinox/docker-base-alpine/pkgs/container/alpine-base/versions?filters%5Bversion_type%5D=untagged Because latest run
So I think it behaves correctly. |
The double tagged one I can fix. But the question I don't understand is; if it's pushing the ones with proper tags; then why is it pushing another copy without the tags? Shouldn't those also have tags since they match the SHA of the tagged ones? Or is their an incorrect part of my workflow which is triggering this behavior? Not sure I get where to start looking as to the root cause why it behaves like this. The ultimate goal is just for it to release two images, both tagged. Edit: Yeah, I see why it was double-tagging latest. Was a copy/paste error. So the double And I see now, the two untagged are coming from the previous workflow |
Found this related topic https://github.com/orgs/community/discussions/26716#discussioncomment-3253024 that says tag-less manifests are shown in GitHub UI so this is expected and not related to the action. |
I have tried all measures I can think of to prevent this but in some cases (it is not clear to me which those are) this action produces a number of untagged images that from their history seem to be more or less identical to existing ones. I have this setup:
Here is the result for one of my packages:
I'm hesitant to file this as a bug because maybe there's a sensible explanation? But without multi arch build or provenance this just can't be right, can it?
The text was updated successfully, but these errors were encountered: