Skip to content
Snippets Groups Projects
Commit 1e4f0afa authored by Simon Praetorius's avatar Simon Praetorius
Browse files

add more output

parent 72717b06
No related branches found
No related tags found
1 merge request!160Draft: Fix the automatic build
Pipeline #77786 failed
......@@ -17,15 +17,26 @@ get_bearer_token() {
}
get_manifest() {
echo ">>>>>> get_bearer_token ... "
get_bearer_token $1
echo ">>>>>> get_bearer_token ... [ ok ]"
echo ">>>>>> curl -s -D manifest_headers ..."
manifest_data=$(curl -s -D manifest_headers -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -H "Authorization: Bearer ${token}" "https://${CI_REGISTRY}/v2/$1/manifests/$2")
echo ">>>>>> curl -s -D manifest_headers ... [ ok ]"
if [[ $? -ne 0 ]] ; then
echo " ERROR: Could not get manifest for '$1:$2'"
return 1
fi
echo ">>>>>> grep -i ..."
manifest_digest=$(grep -i "^Docker-Content-Digest:" < manifest_headers | cut -d " " -f 2)
echo ">>>>>> grep -i ... [ ok ]"
echo ">>>>>> manifest_digest ..."
manifest_digest=${manifest_digest%$'\r'}
echo ">>>>>> manifest_digest ... [ ok ]"
rm -f manifest_headers
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment