Files
traefik-whoami/Makefile
2025-05-22 15:24:04 +02:00

21 lines
362 B
Makefile

.PHONY: default check test build image
IMAGE_NAME := traefik/whoami
default: check test build
build:
CGO_ENABLED=0 go build -a --trimpath --installsuffix cgo --ldflags="-s" -o whoami
test:
go test -v -cover ./...
check:
golangci-lint run
image:
docker build -t $(IMAGE_NAME) .
protoc:
protoc --proto_path . ./grpc.proto --go-grpc_out=./ --go_out=./