Fix grep in travis-ci to match the version as a word [ci skip]
This commit is contained in:
parent
9a44d71a4e
commit
59ab85fbf9
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ fi
|
|||
function docker_tag_exists() {
|
||||
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)
|
||||
if echo "$IMAGES" | grep -wq "$TAG" ; then
|
||||
if echo "$IMAGES" | grep -q -P "(^|\s)$TAG(?=\s|$)" ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue