Skip to content

Commit

Permalink
fix: added OCI Image Index mediaType (#2352)
Browse files Browse the repository at this point in the history
## Description

Added the OCI Image Index's mediaType for completeness sake per the OCI
spec and to work around a known Sonatype Nexus Repository bug.

## Related Issue

Fixes #2351

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Wayne Starr <Racer159@users.noreply.github.com>
  • Loading branch information
mdaizcorbe and Racer159 committed Mar 4, 2024
1 parent 169da50 commit ac703d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkg/oci/push.go
Expand Up @@ -190,6 +190,7 @@ func (o *OrasRemote) UpdateIndex(tag string, arch string, publishedDesc ocispec.
Versioned: specs.Versioned{
SchemaVersion: 2,
},
MediaType: ocispec.MediaTypeImageIndex,
Manifests: []ocispec.Descriptor{
{
MediaType: ocispec.MediaTypeImageManifest,
Expand Down

0 comments on commit ac703d5

Please sign in to comment.