Skip to content

Commit

Permalink
Update script logic for validating tag (#3237)
Browse files Browse the repository at this point in the history
Co-authored-by: “shaun-nx” <“s.odonovan@f5.com”>
  • Loading branch information
shaun-nx and “shaun-nx” committed Nov 10, 2022
1 parent e0e4846 commit 2a0b30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docker_tag=edge

commit_tag=$(git tag --contains ${git_commit})

if [[ ${commit_tag} == ${git_tag} ]]; then
if [[ ${commit_tag} == *${git_tag}* ]]; then
# we're on the tag, use the docker image for the tag
docker_tag=${git_tag//v/}
echo ${docker_tag}
Expand Down

0 comments on commit 2a0b30c

Please sign in to comment.