Merge pull request #1845 from nextcloud/enh/noid/accept-new-oci-format

also accept application/vnd.oci.image.index.v1+json for newer buildx …
This commit is contained in:
Simon L 2023-01-27 18:36:14 +01:00 committed by GitHub
commit 98f688a63a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ class DockerHubManager
'https://registry-1.docker.io/v2/'.$name.'/manifests/' . $tag, 'https://registry-1.docker.io/v2/'.$name.'/manifests/' . $tag,
[ [
'headers' => [ 'headers' => [
'Accept' => 'application/vnd.docker.distribution.manifest.v2+json', 'Accept' => 'application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.index.v1+json',
'Authorization' => 'Bearer ' . $authToken, 'Authorization' => 'Bearer ' . $authToken,
], ],
] ]