Unverified Commit 7952ea88 authored by ls-2018's avatar ls-2018 Committed by GitHub
Browse files

fix: tag err (#5236)


Signed-off-by: default avataracejilam <acejilam@gmail.com>
Co-authored-by: default avatarGraham King <grahamk@nvidia.com>
parent e3c3a6b9
...@@ -29,7 +29,7 @@ PLATFORM=linux/amd64 ...@@ -29,7 +29,7 @@ PLATFORM=linux/amd64
commit_id=${commit_id:-$(git rev-parse --short HEAD)} commit_id=${commit_id:-$(git rev-parse --short HEAD)}
# if COMMIT_ID matches a TAG use that # if COMMIT_ID matches a TAG use that
current_tag=${current_tag:-$($(git describe --tags --exact-match 2>/dev/null | sed 's/^v//') || true)} current_tag=${current_tag:-$(git describe --tags --exact-match 2>/dev/null | sed 's/^v//' || true)}
# Get latest TAG and add COMMIT_ID for dev # Get latest TAG and add COMMIT_ID for dev
latest_tag=${latest_tag:-$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1)" | sed 's/^v//' || true)} latest_tag=${latest_tag:-$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1)" | sed 's/^v//' || true)}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment