Skip to content

Commit

Permalink
fix: Version tag in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Jan 8, 2023
1 parent a2f6a43 commit 964582a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/build/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Building ${APP}..."
COMMIT="$(git rev-parse HEAD)"
SHORTCOMMIT="$(git rev-parse --short HEAD)"
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
VERSION="$(git tag --sort=committerdate | tail -1)"
VERSION="$(git tag | sort -V | tail -1)"
GOVERSION="$(go version | awk '{print $3;}')"

if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git fetch --tags -f
COMMIT="$(git rev-parse HEAD)"
SHORTCOMMIT="$(git rev-parse --short HEAD)"
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
VERSION="$(git tag --sort=committerdate | tail -1)"
VERSION="$(git tag | sort -V | tail -1)"
GOVERSION="$(go version | awk '{print $3;}')"

if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/local-snapshot-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git fetch --tags -f
COMMIT="$(git rev-parse HEAD)"
SHORTCOMMIT="$(git rev-parse --short HEAD)"
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
VERSION="$(git tag --sort=committerdate | tail -1)"
VERSION="$(git tag | sort -V | tail -1)"
GOVERSION="$(go version | awk '{print $3;}')"

if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ git fetch --tags -f
COMMIT="$(git rev-parse HEAD)"
SHORTCOMMIT="$(git rev-parse --short HEAD)"
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
VERSION="$(git tag --sort=committerdate | tail -1)"
VERSION="$(git tag | sort -V | tail -1)"
GOVERSION="$(go version | awk '{print $3;}')"

if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]
Expand Down

0 comments on commit 964582a

Please sign in to comment.