Skip to content

Commit

Permalink
fix: get only the most recent tag in Makefile (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLugo committed Apr 22, 2024
1 parent 774488d commit 20598a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export GO111MODULE=on
all: image

TAG=$(shell git describe --tags --abbrev=10 --long)
TAGGED=$(shell git tag --contains | head)
TAGGED=$(shell git tag --sort=-creatordate --contains | head --lines=1)
ifneq (,$(TAGGED))
# We're tagged. Use the tag explicitly.
VERSION := $(TAGGED)
Expand Down

0 comments on commit 20598a7

Please sign in to comment.