-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
32 lines (23 loc) · 859 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
HUB :=
REPO := etiennecoutaud
IMAGE := kanary-operator
TAG := dev
build:
go build -i github.com/etiennecoutaud/kanary/cmd/kanary-operator
run: build
kubectl apply -f manifests/kanary-crd.yml
./kanary-operator -kubeconfig=$(HOME)/.kube/config -v=2 -logtostderr=true
darwin:
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s" -o kanary-operator github.com/etiennecoutaud/kanary/cmd/kanary-operator
linux:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s" -o kanary-operator github.com/etiennecoutaud/kanary/cmd/kanary-operator
release:
docker build -t "$(REPO)/$(IMAGE):$(TAG)" .
docker push "$(REPO)/$(IMAGE):$(TAG)"
test:
go test $(shell go list ./... | grep -v fake) -coverprofile=coverage.txt -covermode=atomic
dep:
glide up
gen:
hack/update-codegen.sh
.PHONY: build test darwin image e2e clean-test update-version