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