Skip to content

Commit

Permalink
ISSUE-1360: change to looking for lower-case reponse from dockerhub w…
Browse files Browse the repository at this point in the history
…hen 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: Alistair Hey <alistair.hey@gmail.com>
  • Loading branch information
Alistair Hey authored and alexellis committed Oct 21, 2019
1 parent 672b7c4 commit 9855e2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/publish-arm.sh
Expand Up @@ -48,13 +48,13 @@ do


for IMAGE in "${images[@]}" for IMAGE in "${images[@]}"
do do
TAG_PRESENT=$(curl -s "https://hub.docker.com/v2/repositories/${IMAGE}/tags/${TAG}-${ARM_VERSION}/" | grep -Po '"detail": *"[^"]*"' | grep -o 'Not found') 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 if [ "$TAG_PRESENT" = "not found" ]; then
break break
fi fi
done done


if [ "$TAG_PRESENT" = "Not found" ]; then if [ "$TAG_PRESENT" = "not found" ]; then
make ci-${ARM_VERSION}-build ci-${ARM_VERSION}-push make ci-${ARM_VERSION}-build ci-${ARM_VERSION}-push
else else
for IMAGE in "${images[@]}" for IMAGE in "${images[@]}"
Expand Down

0 comments on commit 9855e2f

Please sign in to comment.