-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Description
Pushing an image with more than one tag seems to result in the same image pushed with a different digest per pushed tag.
To reproduce
- add a basic GH workflow using the
buildah-build
andpush-to-registry
action - build a basic test image with at least 2 tags (e.g.
tags: unstable {{ github.sha }}
) - let the workflow push the image with both tags
- see the result in the registry (2 digests for the same image 😕)
Example
I stumbled over this while working on some PRs for dohq/dockerhub_ratelimit_exporter
where I wanted to add an incremental build workflow and ultimately release workflow pushing a Container Image.
I tried pushing to both the new ghcr.io
(tried formats: docker and oci) as well as docker.io
(tried format: docker), both resulting in the image getting pushed successfully, but with 2 different digests for the two tags.
my Fork's inc-build
Workflow
the result on ghcr.io
The "2" tags in the screenshot are the result of the same inc-build => the same image.
Alternative "solution"
Use the docker based alternative actions to build and push, as these don't seem to face this problem