Skip to content

[23.0 backport] Use the image service instead of the reference store for tagging#45410

Merged
thaJeztah merged 1 commit into
moby:23.0from
rumpl:23.0_backport-fix-buildx-tag-events
Apr 26, 2023
Merged

[23.0 backport] Use the image service instead of the reference store for tagging#45410
thaJeztah merged 1 commit into
moby:23.0from
rumpl:23.0_backport-fix-buildx-tag-events

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Apr 26, 2023

- What I did

Changed the way mobyexporter tags an image, it used to use the reference store which doesn't send image events, we now use the image service to tag the new image. This makes sure we send the "tag" event when an image is built with buildx.

Note: this was a long standing issue when building an image with buildx but it only came up now because buildx is the default builder since 23.0

- How I did it

- How to verify it

The image store sends events when a new image is created/tagged, using
it instead of the reference store makes sure we send the "tag" event
when a new image is built using buildx.

Signed-off-by: Djordje Lukic <[email protected]>
@rumpl rumpl requested a review from tonistiigi as a code owner April 26, 2023 14:34
@thaJeztah thaJeztah added this to the 23.0.5 milestone Apr 26, 2023
}

type ImageTagger interface {
TagImageWithReference(imageID image.ID, newTag reference.Named) error
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For others; master diverged; on master, this is;

Suggested change
TagImageWithReference(imageID image.ID, newTag reference.Named) error
TagImage(ctx context.Context, imageID image.ID, newTag distref.Named) error

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 94d3ad6 into moby:23.0 Apr 26, 2023
@thaJeztah thaJeztah deleted the 23.0_backport-fix-buildx-tag-events branch April 26, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants