Skip to content

Commit

Permalink
Merge pull request #266 from depot/load-without-oci
Browse files Browse the repository at this point in the history
Don't use OCI mediatypes when pushing to Heroku's registry
  • Loading branch information
jacobwgillespie authored Apr 8, 2024
2 parents 45e7b2e + 8a6ba60 commit 5fba100
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/load/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ func WithDepotImagePull(buildOpts map[string]build.Options, loadOpts DepotLoadOp
export.Attrs["name"] = defaultImageName(loadOpts, target)
}

export.Attrs["oci-mediatypes"] = "true"
// Don't use OCI mediatypes if pushing to Heroku's registry.
if !strings.Contains(export.Attrs["name"], "registry.heroku.com") {
export.Attrs["oci-mediatypes"] = "true"
}

export.Attrs["depot.export.lease"] = "true"
export.Attrs["depot.export.image.version"] = "2"
}
Expand Down

0 comments on commit 5fba100

Please sign in to comment.