From f815383dca061f7d19172e4cff826c1bdc2d2c7f Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 31 Jan 2023 09:38:50 +1100 Subject: [PATCH] promote-docker-image: also accept OCI manifest formats It seems likely that new versions of buildx are uploading manifests in the OCI manifest format, which needs to be explicitly accepted in the headers. Change-Id: Ie2b908b7019389087ea37058bed15760619e48c6 --- roles/promote-docker-image/tasks/promote-retag-inner.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/promote-docker-image/tasks/promote-retag-inner.yaml b/roles/promote-docker-image/tasks/promote-retag-inner.yaml index 0c8ba5ab2..0c3d67a15 100644 --- a/roles/promote-docker-image/tasks/promote-retag-inner.yaml +++ b/roles/promote-docker-image/tasks/promote-retag-inner.yaml @@ -7,7 +7,11 @@ url: "https://registry.hub.docker.com/v2/{{ zj_image.repository }}/manifests/{{ promote_tag_prefix }}_{{ zj_image_tag }}" status_code: 200 headers: - Accept: "application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.docker.distribution.manifest.v2+json" + Accept: >- + application/vnd.docker.distribution.manifest.list.v2+json, + application/vnd.docker.distribution.manifest.v2+json, + application/vnd.oci.image.index.v1+json, + application/vnd.oci.image.manifest.v1+json Authorization: "Bearer {{ token.json.token }}" return_content: true register: manifest