Skip to content

Commit

Permalink
Add version to build binary
Browse files Browse the repository at this point in the history
  • Loading branch information
airenas committed Feb 19, 2021
1 parent c137bf2 commit 7bf48a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/doorman-admin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ executable_name=doorman-admin
main_dir=../../cmd/$(executable_name)
service=airenas/api-doorman-admin
version=0.2
go_build_cmd=CGO_ENABLED=0 go build -installsuffix -cgo
commit_count=$(shell git rev-list --count HEAD)
go_build_cmd=CGO_ENABLED=0 go build -installsuffix -cgo -ldflags "-X main.version=$(version).$(commit_count)"
#####################################################################################
$(dist_dir):
mkdir -p $@
Expand Down
4 changes: 2 additions & 2 deletions deploy/doorman/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ dist_dir=$(CURDIR)/data
executable_name=doorman
main_dir=../../cmd/$(executable_name)
service=airenas/api-doorman
version=0.3
go_build_cmd=CGO_ENABLED=0 go build -installsuffix -cgo
version=0.4
commit_count=$(shell git rev-list --count HEAD)
go_build_cmd=CGO_ENABLED=0 go build -installsuffix -cgo -ldflags "-X main.version=$(version).$(commit_count)"
#####################################################################################
$(dist_dir):
mkdir -p $@
Expand Down

0 comments on commit 7bf48a8

Please sign in to comment.