Skip to content
Snippets Groups Projects
Commit 9855e2f9 authored by Alistair Hey's avatar Alistair Hey Committed by Alex Ellis
Browse files

ISSUE-1360: change to looking for lower-case reponse from dockerhub when tag isnt present.


The response for an image tag that has not been found is inside a JSON elemnt of "message" not the stated "details", it has also been lower-cased.

Signed-off-by: default avatarAlistair Hey <alistair.hey@gmail.com>
parent 672b7c48
No related branches found
No related tags found
No related merge requests found
......@@ -48,13 +48,13 @@ do
for IMAGE in "${images[@]}"
do
TAG_PRESENT=$(curl -s "https://hub.docker.com/v2/repositories/${IMAGE}/tags/${TAG}-${ARM_VERSION}/" | grep -Po '"detail": *"[^"]*"' | grep -o 'Not found')
if [ "$TAG_PRESENT" = "Not found" ]; then
TAG_PRESENT=$(curl -s "https://hub.docker.com/v2/repositories/${IMAGE}/tags/${TAG}-${ARM_VERSION}/" | grep -Po '"message": *"[^"]*"' | grep -io 'not found')
if [ "$TAG_PRESENT" = "not found" ]; then
break
fi
done
if [ "$TAG_PRESENT" = "Not found" ]; then
if [ "$TAG_PRESENT" = "not found" ]; then
make ci-${ARM_VERSION}-build ci-${ARM_VERSION}-push
else
for IMAGE in "${images[@]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment