Files
traefik-whoami/Makefile
2020-09-16 09:53:35 +02:00

21 lines
412 B
Makefile

.PHONY: default build image check publish-images
TAG_NAME := $(shell git tag -l --contains HEAD)
default: check test build
test:
go test -v -cover ./...
build:
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o whoami
image:
docker build -t traefik/whoami .
check:
golangci-lint run
publish-images:
seihon publish -v "$(TAG_NAME)" -v "latest" --image-name traefik/whoami --dry-run=false