Skip to content

Commit

Permalink
fixing a bug when exporting multi-platform buildpack packages files
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed May 20, 2024
1 parent 46ec0df commit 87e4101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/client/package_buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func (c *Client) PackageBuildpack(ctx context.Context, opts PackageBuildpackOpti
digests = append(digests, digest)
}

if multiArch && len(digests) > 1 {
if opts.Publish && len(digests) > 1 {
// Image Index must be created only when we pushed to registry
return c.CreateManifest(ctx, CreateManifestOptions{
IndexRepoName: opts.Name,
RepoNames: digests,
Expand Down

0 comments on commit 87e4101

Please sign in to comment.