fix version release
This commit is contained in:
parent
50d7c4ce96
commit
0f2733418a
2
Makefile
2
Makefile
|
@ -22,7 +22,7 @@ BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g')"
|
|||
BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeName)
|
||||
BUILD_TIMESTAMP=$(shell date +%F"_"%T)
|
||||
BUILD_TAG="$(shell git rev-parse HEAD)"
|
||||
export LD_OPTS=-ldflags "-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \
|
||||
export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \
|
||||
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \
|
||||
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \
|
||||
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \
|
||||
|
|
|
@ -7,7 +7,6 @@ GOGET=$(GOCMD) get
|
|||
BINARY_NAME=cscli
|
||||
PREFIX?="/"
|
||||
BIN_PREFIX = $(PREFIX)"/usr/local/bin/"
|
||||
LD_OPTS=-ldflags="-s -w"
|
||||
|
||||
all: clean build
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ DATA_PREFIX = $(PREFIX)"/var/run/crowdsec/"
|
|||
PID_DIR = $(PREFIX)"/var/run/"
|
||||
|
||||
SYSTEMD_PATH_FILE="/etc/systemd/system/crowdsec.service"
|
||||
LD_OPTS=-ldflags="-s -w"
|
||||
|
||||
all: clean test build
|
||||
|
||||
|
|
Loading…
Reference in a new issue