Skip to content

Commit

Permalink
Merge pull request #283 from depot/feat/add-registry-image-tag
Browse files Browse the repository at this point in the history
fix: use unmodifed image.name in metadata file
  • Loading branch information
goller authored May 3, 2024
2 parents d15e405 + b3549d0 commit a6fccb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/buildx/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,9 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opt map[s
descs := make([]specs.Descriptor, 0, len(res))

for _, r := range res {
// DEPOT: image.name is manipulated above to strip the tag on multi-platform builds.
// This adds the user's specified image names back so the tags are included.
r.SolveResponse.ExporterResponse["image.name"] = pushNames
s, ok := r.SolveResponse.ExporterResponse[exptypes.ExporterImageDescriptorKey]
if ok {
dt, err := base64.StdEncoding.DecodeString(s)
Expand Down

0 comments on commit a6fccb3

Please sign in to comment.