Skip to content

Commit bba4132

Browse files
authored
fix: use latest tag across all branches for version detection (#4229)
Signed-off-by: Keiven Chang <[email protected]> Co-authored-by: Keiven Chang <[email protected]>
1 parent 674e2ec commit bba4132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ commit_id=$(git rev-parse --short HEAD)
3232
current_tag=$(git describe --tags --exact-match 2>/dev/null | sed 's/^v//') || true
3333

3434
# Get latest TAG and add COMMIT_ID for dev
35-
latest_tag=$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1 main)" | sed 's/^v//') || true
35+
latest_tag=$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1)" | sed 's/^v//') || true
3636
if [[ -z ${latest_tag} ]]; then
3737
latest_tag="0.0.1"
3838
echo "No git release tag found, setting to unknown version: ${latest_tag}"

0 commit comments

Comments
 (0)