forked from kubevirt/bridge-marker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
REGISTRY ?= quay.io/kubevirt
IMAGE_TAG ?= latest
COMPONENTS = $(sort \
$(subst /,-,\
$(patsubst cmd/%/,%,\
$(dir \
$(shell find cmd/ -type f -name '*.go')))))
all: build
build: manifests format
hack/version.sh > ./cmd/marker/.version
cd cmd/marker && go build
format:
go fmt ./pkg/... ./cmd/... ./tests/...
go vet ./pkg/... ./cmd/... ./tests/...
functest:
hack/dockerized "hack/build-func-tests.sh"
hack/functests.sh
docker-build:
docker build -f cmd/marker/Dockerfile -t ${REGISTRY}/bridge-marker:${IMAGE_TAG} .
docker-push:
docker push ${REGISTRY}/bridge-marker:${IMAGE_TAG}
manifests:
./hack/build-manifests.sh
cluster-up:
./cluster/up.sh
cluster-down:
./cluster/down.sh
cluster-sync: build
./cluster/sync.sh
dep:
dep ensure
.PHONY: build format docker-build docker-push manifests cluster-up cluster-down cluster-sync dep