Skip to content

Commit

Permalink
Hardcode OCI media types because GCR is strict
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Dec 9, 2019
1 parent f5b0474 commit 3ea73f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/build/gobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,10 @@ func (gb *gobuild) buildAll(ctx context.Context, s string, base v1.ImageIndex) (
adds = append(adds, mutate.IndexAddendum{
Add: img,
Descriptor: v1.Descriptor{
URLs: desc.URLs,
MediaType: desc.MediaType,
URLs: desc.URLs,
// TODO(jonjohnsonjr): It would be really nice if we had a mapping
// between docker and OCI media types.
MediaType: types.OCIManifestSchema1,
Annotations: desc.Annotations,
Platform: desc.Platform,
},
Expand Down

0 comments on commit 3ea73f0

Please sign in to comment.