Skip to content

Commit

Permalink
update: explicitly check for rulesfile or asset while pushing
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Di Pierro <[email protected]>
Signed-off-by: Lorenzo Susini <[email protected]>
  • Loading branch information
loresuso and FedeDP authored Jul 27, 2023
1 parent cec33fa commit c7a19f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oci/pusher/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (p *Pusher) Push(ctx context.Context, artifactType oci.ArtifactType,
}
}

if artifactType != oci.Plugin {
if artifactType == oci.Rulesfile || artifactType == oci.Asset {
// We should have only one manifestDesc for any not arch dependent artifact.
rootDesc = manifestDescs[0]
} else {
Expand Down

0 comments on commit c7a19f8

Please sign in to comment.