Merge pull request #10978 from MikeMcQuaid/github_packages_media_type

github_packages: update mediaType.
This commit is contained in:
Mike McQuaid 2021-04-01 15:06:50 +01:00 committed by GitHub
commit 8f78b93351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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