Commit 51f9034 1 parent 9338816 commit 51f9034 Copy full SHA for 51f9034
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,19 @@ PREFIX?="/"
10
10
PID_DIR = $(PREFIX ) "/var/run/"
11
11
BINARY_NAME =crowdsec-custom-bouncer
12
12
13
-
14
13
# Current versioning information from env
15
- BUILD_VERSION? ="$(shell git describe --tags `git rev-list --tags --max-count=1` ) "
14
+ BUILD_VERSION? ="$(shell git describe --tags) "
16
15
BUILD_GOVERSION ="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g') "
17
16
BUILD_TIMESTAMP =$(shell date +% F"_"% T)
18
17
BUILD_TAG ="$(shell git rev-parse HEAD) "
18
+
19
19
export LD_OPTS =-ldflags "-s -w -X github.com/crowdsecurity/crowdsec-custom-bouncer/pkg/version.Version=$(BUILD_VERSION ) \
20
20
-X github.com/crowdsecurity/crowdsec-custom-bouncer/pkg/version.BuildDate=$(BUILD_TIMESTAMP ) \
21
21
-X github.com/crowdsecurity/crowdsec-custom-bouncer/pkg/version.Tag=$(BUILD_TAG ) \
22
22
-X github.com/crowdsecurity/crowdsec-custom-bouncer/pkg/version.GoVersion=$(BUILD_GOVERSION ) "
23
23
24
24
RELDIR = "crowdsec-custom-bouncer-${BUILD_VERSION}"
25
25
26
-
27
26
all : clean test build
28
27
29
28
static : clean
40
39
@rm -rf ${RELDIR}
41
40
@rm -f crowdsec-custom-bouncer.tgz || " "
42
41
43
-
44
42
.PHONY : release
45
43
release : build
46
44
@if [ -z ${BUILD_VERSION} ] ; then BUILD_VERSION=" local" ; fi
@@ -56,4 +54,4 @@ release: build
56
54
@chmod +x $(RELDIR ) /uninstall.sh
57
55
@chmod +x $(RELDIR ) /upgrade.sh
58
56
@tar cvzf crowdsec-custom-bouncer.tgz $(RELDIR )
59
-
57
+
You can’t perform that action at this time.
0 commit comments