Skip to content

Commit

Permalink
add condition for version_metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Harshvir Potpose <[email protected]>
  • Loading branch information
akagami-harsh committed Jan 6, 2024
1 parent aa79dfa commit ef11022
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@ endif
VERSION ?= latest

VERSION_METADATA = unreleased
ifneq ($(GIT_TAG),)
VERSION_METADATA =
ifneq ($(filter v%[0-9].%[0-9].%[0-9],$(GIT_TAG)),)
VERSION_METADATA = stable
else ifneq ($(filter v%[0-9].%[0-9].%[0-9]-%,$(GIT_TAG)),)
VERSION_METADATA = prerelease
else ifneq ($(filter v%[0-9].%[0-9].%[0-9]-released,$(GIT_TAG)),)
VERSION_METADATA = released
endif
endif
LDFLAGS += -X github.com/konveyor/${BINNAME}/types/info.buildmetadata=${VERSION_METADATA}

Expand Down

0 comments on commit ef11022

Please sign in to comment.