Skip to content

Commit

Permalink
add BuildInfo and Version to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
backguynn committed Jun 19, 2023
1 parent 533ca15 commit d371f6d
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 @@ -4,7 +4,7 @@ TAG?=latest

build:
@mkdir -p ./bin
go build -o ./bin/${bin} -ldflags="-X 'main.BuildInfo=${shell date '+%Y_%m_%d'}-${shell git branch --show-current}-$(shell git show --pretty=format:%h --no-patch)' -X 'loxicmd/cmd.Version=${shell git describe --tags --abbrev=0}'" ./cmd/loxilb-agent
go build -o ./bin/${bin} -ldflags="-X 'main.BuildInfo=${shell date '+%Y_%m_%d'}-${shell git branch --show-current}-$(shell git show --pretty=format:%h --no-patch)' -X 'main.Version=${shell git describe --tags --abbrev=0}'" ./cmd/loxilb-agent

clean:
go clean ./cmd
Expand Down

0 comments on commit d371f6d

Please sign in to comment.