Fix grep in travis-ci to match the version as a word [ci skip]

This commit is contained in:
Manuel de Brito Fontes 2017-12-04 10:52:55 -03:00
parent 5373348306
commit 9a44d71a4e

View file

@ -82,7 +82,7 @@ fi
function docker_tag_exists() { function docker_tag_exists() {
TAG=${2//\"/} TAG=${2//\"/}
IMAGES=$(curl -s -H "Authorization: Bearer ${QUAY_PASSWORD}" https://quay.io/api/v1/repository/$1-$3/image/ | jq '.images | sort_by(.sort_index) | .[] .tags | select(.[] !=null) | .[0]' | sed s/\"//g) IMAGES=$(curl -s -H "Authorization: Bearer ${QUAY_PASSWORD}" https://quay.io/api/v1/repository/$1-$3/image/ | jq '.images | sort_by(.sort_index) | .[] .tags | select(.[] !=null) | .[0]' | sed s/\"//g)
if echo "$IMAGES" | grep -q "$TAG" ; then if echo "$IMAGES" | grep -wq "$TAG" ; then
return 0 return 0
fi fi