forked from kubernetes-sigs/aws-encryption-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 717 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
REPO?=gcr.io/must-override
IMAGE?=aws-encryption-provider
TAG?=0.0.1
.PHONY: lint test build-docker build-server build-client
lint:
echo "Verifying go mod tidy"
hack/verify-mod-tidy.sh
echo "Verifying gofmt"
hack/verify-gofmt.sh
echo "Verifying linting"
hack/verify-golint.sh
test:
go test -mod mod -v -cover -race ./...
build-docker:
docker build \
-t ${REPO}/${IMAGE}:latest \
-t ${REPO}/${IMAGE}:${TAG} \
--build-arg TAG=${TAG} .
build-server:
go build -mod mod -ldflags \
"-w -s -X sigs.k8s.io/aws-encryption-provider/pkg/version.Version=${TAG}" \
-o bin/aws-encryption-provider cmd/server/main.go
build-client:
go build -mod mod -ldflags "-w -s" -o bin/grpcclient cmd/client/main.go