Skip to content

Commit

Permalink
set git tag as app version
Browse files Browse the repository at this point in the history
  • Loading branch information
swinkelhofer committed Oct 17, 2021
1 parent 4774c70 commit c1e3c76
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
@@ -1,7 +1,7 @@
COMMIT := $(shell git describe --dirty --always)
TAG := $(shell git describe --tags $(git rev-list --tags --max-count=1))

LDFLAGS := "-s -w -X main.GitCommit=$(COMMIT)"
LDFLAGS := "-s -w -X main.GitCommit=$(COMMIT) -X main.Version=$(TAG)"

.PHONY: build
.DEFAULT_GOAL := build
Expand Down

0 comments on commit c1e3c76

Please sign in to comment.