File tree Expand file tree Collapse file tree
roles/generate-jenkins/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,17 +110,20 @@ jobs:
110110{% if better_vars .MULTIARCH == 'true' %}
111111 multidigest=$(curl -s \
112112 --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
113+ --header "Accept: application/vnd.oci.image.index.v1+json" \
113114 --header "Authorization: Bearer ${token}" \
114115 "https://ghcr.io/v2/${image}/manifests/${tag}" \
115116 | jq -r 'first(.manifests[].digest)')
116117 digest=$(curl -s \
117118 --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
119+ --header "Accept: application/vnd.oci.image.index.v1+json" \
118120 --header "Authorization: Bearer ${token}" \
119121 "https://ghcr.io/v2/${image}/manifests/${multidigest}" \
120122 | jq -r '.config.digest')
121123{% else %}
122124 digest=$(curl -s \
123125 --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
126+ --header "Accept: application/vnd.oci.image.index.v1+json" \
124127 --header "Authorization: Bearer ${token}" \
125128 "https://ghcr.io/v2/${image}/manifests/${tag}" \
126129 | jq -r '.config.digest')
You can’t perform that action at this time.
0 commit comments