Skip to content

Commit

Permalink
updated script to point at RC version correctly (#3541)
Browse files Browse the repository at this point in the history
* updated script to point at RC version correctly
  • Loading branch information
wilkermichael authored Feb 2, 2024
1 parent 25708a1 commit 1510cef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
FILE=$1
VERSION=$(yq .global.image $FILE)

if [[ !"${VERSION}" == *"hashicorp/consul:"* ]]; then
if [[ "${VERSION}" == *"hashicorp/consul:"* ]]; then
# for matching release image repos with a -ent label
VERSION=$(echo ${VERSION} | sed "s/consul:/consul-enterprise:/g" | sed "s/$/-ent/g")
elif [[ !"${VERSION}" == *"-rc"* ]]; then
VERSION=$(echo ${VERSION} | sed "s/consul:/consul-enterprise:/g" | sed "s/$/-ent/g")
else
# for matching preview image repos
VERSION=$(echo ${VERSION} | sed "s/consul:/consul-enterprise:/g")
fi

Expand Down

0 comments on commit 1510cef

Please sign in to comment.