Skip to content

Commit

Permalink
use GIT_VER for main.version
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Jan 21, 2020
1 parent 4db2141 commit 45b4f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ packages:
-arch="amd64" \
-output "../../pkg/{{.Dir}}-${GIT_VER}-{{.OS}}-{{.Arch}}" \
-gcflags "-trimpath=${GOPATH}" \
-ldflags "-w -X main.version=${TAG} -X main.buildDate=${DATE} -extldflags \"-static\"" \
-ldflags "-w -X main.version=${GIT_VER} -X main.buildDate=${DATE} -extldflags \"-static\"" \
-tags "netgo"
cd pkg && find . -name "*${TAG}*" -type f -exec zip {}.zip {} \;
cd pkg && find . -name "*${GIT_VER}*" -type f -exec zip {}.zip {} \;

gen-cert:
test/scripts/gen_test_cert.sh
Expand Down

0 comments on commit 45b4f0b

Please sign in to comment.