Skip to content

Commit

Permalink
chore: get next tag from git tags, not docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 1, 2022
1 parent 4af2376 commit 7ea69c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release-workflow/next-docker-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem_version_from_gemfile_lock() {
}

gem_version=$(ruby -I lib -e "require 'pact/cli/version.rb'; puts Pact::Cli::VERSION")
existing_tags=$(wget -q https://registry.hub.docker.com/v1/repositories/${DOCKER_IMAGE_ORG_AND_NAME}/tags -O - | jq -r .[].name | sed 's/-[0-9]$/.1/g')
existing_tags=$(git tag)
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 7ea69c6

Please sign in to comment.