-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (18 loc) · 635 Bytes
/
Makefile
File metadata and controls
27 lines (18 loc) · 635 Bytes
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
IMG ?= quay.io/ullbergm/object-lease-controller:latest
run: build
./bin/lease-controller -group startpunkt.ullberg.us -kind Application -version v1alpha2 -leader-elect -leader-elect-namespace default -opt-in-label-key "object-lease-controller.ullberg.us/enabled" -opt-in-label-value true
tidy:
go mod tidy
fmt:
go fmt ./...
vet:
go vet ./...
test: tidy fmt vet
go test ./... -race -coverprofile=coverage.out
build: tidy fmt vet test
go build -o bin/lease-controller ./cmd/main.go
docker-build: build
docker build -t $(IMG) .
docker-push:
docker push $(IMG)
.PHONY: run tidy fmt vet test build docker-build docker-push