File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 34
34
token=$(curl -sX GET \
35
35
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fldap-auth%3Apull" \
36
36
| jq -r '.token')
37
- if [ "${MULTIARCH}" == "true" ]; then
38
37
multidigest=$(curl -s \
39
38
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
40
39
--header "Authorization: Bearer ${token}" \
45
44
--header "Authorization: Bearer ${token}" \
46
45
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
47
46
| jq -r '.config.digest')
48
- else
49
- digest=$(curl -s \
50
- --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
51
- --header "Authorization: Bearer ${token}" \
52
- "https://ghcr.io/v2/${image}/manifests/${tag}" \
53
- | jq -r '.config.digest')
54
- fi
55
47
image_info=$(curl -sL \
56
48
--header "Authorization: Bearer ${token}" \
57
49
"https://ghcr.io/v2/${image}/blobs/${digest}" \
You can’t perform that action at this time.
0 commit comments