Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/build/oci/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ func LoadIndex(ctx context.Context, idx v1.ImageIndex, tags []string) (name.Refe
return name.Digest{}, fmt.Errorf("reading child image %q", useManifest.Digest.String())
}

log.Infof("using best guess single-arch image for local tags (%s/%s)", goos, goarch)
cf, err := img.ConfigFile()
if err != nil {
return name.Digest{}, fmt.Errorf("getting config file: %w", err)
}
log.Infof("using best guess single-arch image for local tags (%s/%s)", cf.OS, cf.Architecture)
return LoadImage(ctx, img, tags)
}

Expand Down