From e91900e2e691adcd8d8b3fb9bd49f7f20aecaf5f Mon Sep 17 00:00:00 2001 From: Wilson Wu Date: Thu, 13 Apr 2023 16:30:05 +0800 Subject: [PATCH] Add makefile for build and lint Signed-off-by: Wilson Wu --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..716b727 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: go_lint +go_lint: + golangci-lint run + +.PHONY: build +build: + CGO_ENABLED=0 GOOS=linux GOARCH=$(TARGETARCH) go build -o rollouts-contour-trafficrouter-plugin ./