github_packages: update mediaType.

This custom type will allow better display in GitHub Packages.
This commit is contained in:
Mike McQuaid 2021-03-31 20:38:53 +01:00
parent 6d883d1808
commit 39a488ca07
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -211,12 +211,12 @@ class GitHubPackages
image_manifest = {
schemaVersion: 2,
config: {
mediaType: "application/vnd.oci.image.config.v1+json",
mediaType: "application/vnd.homebrew.formula.config.v1+json",
digest: "sha256:#{config_json_sha256}",
size: config_json_size,
},
layers: [{
mediaType: "application/vnd.oci.image.layer.v1.tar+gzip",
mediaType: "application/vnd.homebrew.bottle.layer.v1.tar+gzip",
digest: "sha256:#{tar_gz_sha256}",
size: File.size(local_file),
annotations: {