We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa90a4 commit 96a8306Copy full SHA for 96a8306
Makefile
@@ -19,18 +19,19 @@ IMAGE_NAME=csi-snapshotter
19
IMAGE_VERSION=canary
20
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
21
22
+REV=$(shell git describe --long --tags --match='v*' --dirty)
23
+
24
ifdef V
25
TESTARGS = -v -args -alsologtostderr -v 5
26
else
27
TESTARGS =
28
endif
29
-
30
all: csi-snapshotter
31
32
csi-snapshotter:
33
mkdir -p bin
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o ./bin/csi-snapshotter ./cmd/csi-snapshotter
34
+ CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/csi-snapshotter ./cmd/csi-snapshotter
35
36
clean:
37
-rm -rf bin
0 commit comments