Skip to content

Commit

Permalink
chore: fix next-docker-tag.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 12, 2020
1 parent da7e545 commit 4f8b0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release/next-docker-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -e
source script/functions
gem_version=$(gem_version_from_gemfile_lock)
DOCKER_IMAGE="pactfoundation/pact-broker"
existing_tags=$(wget -q https://registry.hub.docker.com/v1/repositories/${DOCKER_IMAGE}/tags -O - | jq -r .[].name )
existing_tags=$(wget -q https://registry.hub.docker.com/v1/repositories/${DOCKER_IMAGE}/tags -O - | jq -r .[].name | sed 's/-[0-9]$/.1/g')
existing_release_numbers_for_current_gem_version=$(echo "$existing_tags" | grep "${gem_version}\." | sed 's/'${gem_version}'\.//g' | grep -E "^[0-9]+$" | cat)

if [ -n "${existing_release_numbers_for_current_gem_version}" ]; then
Expand Down

0 comments on commit 4f8b0f7

Please sign in to comment.