also accept application/vnd.oci.image.index.v1+json for newer buildx versions

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-01-27 18:27:39 +01:00
parent ccf8904c0a
commit 2469461a3c

View file

@ -39,7 +39,7 @@ class DockerHubManager
'https://registry-1.docker.io/v2/'.$name.'/manifests/' . $tag,
[
'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,
],
]