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.
2 parents 35431ec + 0a27a75 commit 9d42c8dCopy full SHA for 9d42c8d
Makefile
@@ -14,24 +14,29 @@
14
15
IMAGE_NAME = quay.io/k8scsi/mock-driver
16
IMAGE_VERSION = canary
17
+APP := ./bin/mock
18
+
19
20
ifdef V
21
TESTARGS = -v -args -alsologtostderr -v 5
22
else
23
TESTARGS =
24
endif
25
-all: mock
26
+all: $(APP)
27
-mock:
28
+$(APP):
29
mkdir -p bin
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o ./bin/mock ./mock/main.go
30
+ CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o $(APP) ./mock/main.go
31
32
clean:
33
rm -rf bin
34
-container: mock
35
+container: $(APP)
36
docker build -f Dockerfile.mock -t $(IMAGE_NAME):$(IMAGE_VERSION) .
37
38
push: container
39
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
40
41
+.PHONY: all clean container push
42
0 commit comments