Skip to content

Commit 16c5488

Browse files
committed
Add Accept for oci image type to ext trigger requests
1 parent c098891 commit 16c5488

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

roles/generate-jenkins/templates/EXTERNAL_TRIGGER.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)