This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ echo "Building ${APP}..."
1616COMMIT=" $( git rev-parse HEAD) "
1717SHORTCOMMIT=" $( git rev-parse --short HEAD) "
1818DATE=" $( date -u +%Y-%m-%dT%H:%M:%SZ) "
19- VERSION=" $( git tag -- sort=committerdate | tail -1) "
19+ VERSION=" $( git tag | sort -V | tail -1) "
2020GOVERSION=" $( go version | awk ' {print $3;}' ) "
2121
2222if [ -z " ${VERSION} " ] || [ " ${VERSION} " = " ${SHORTCOMMIT} " ]
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ git fetch --tags -f
2222COMMIT=" $( git rev-parse HEAD) "
2323SHORTCOMMIT=" $( git rev-parse --short HEAD) "
2424DATE=" $( date -u +%Y-%m-%dT%H:%M:%SZ) "
25- VERSION=" $( git tag -- sort=committerdate | tail -1) "
25+ VERSION=" $( git tag | sort -V | tail -1) "
2626GOVERSION=" $( go version | awk ' {print $3;}' ) "
2727
2828if [ -z " ${VERSION} " ] || [ " ${VERSION} " = " ${SHORTCOMMIT} " ]
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ git fetch --tags -f
2222COMMIT=" $( git rev-parse HEAD) "
2323SHORTCOMMIT=" $( git rev-parse --short HEAD) "
2424DATE=" $( date -u +%Y-%m-%dT%H:%M:%SZ) "
25- VERSION=" $( git tag -- sort=committerdate | tail -1) "
25+ VERSION=" $( git tag | sort -V | tail -1) "
2626GOVERSION=" $( go version | awk ' {print $3;}' ) "
2727
2828if [ -z " ${VERSION} " ] || [ " ${VERSION} " = " ${SHORTCOMMIT} " ]
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ git fetch --tags -f
2323COMMIT=" $( git rev-parse HEAD) "
2424SHORTCOMMIT=" $( git rev-parse --short HEAD) "
2525DATE=" $( date -u +%Y-%m-%dT%H:%M:%SZ) "
26- VERSION=" $( git tag -- sort=committerdate | tail -1) "
26+ VERSION=" $( git tag | sort -V | tail -1) "
2727GOVERSION=" $( go version | awk ' {print $3;}' ) "
2828
2929if [ -z " ${VERSION} " ] || [ " ${VERSION} " = " ${SHORTCOMMIT} " ]
You can’t perform that action at this time.
0 commit comments