Skip to content

Commit 68bc391

Browse files
committed
Fix semver sorting
1 parent 4e6d30c commit 68bc391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set -eu
22

33
git log -25000 --format='%H' | sort > tmp-log
44
git show-ref | grep tags/mysql-8 | sort > tmp-tags
5-
export CONTAINER_SEMVER=$(join tmp-log tmp-tags | sort -k2 | tail -1 | cut -d- -f2)
5+
export CONTAINER_SEMVER=$(join tmp-log tmp-tags | sort -t. -n -k3 | tail -1 | cut -d- -f2)
66
echo "Semantic version = \"${CONTAINER_SEMVER}\""
77

88
export CONTAINER_SHORT_SHA=$(git log -1 --pretty='%h')

0 commit comments

Comments
 (0)