18 lines
287 B
Makefile
18 lines
287 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) .
|