ding/Makefile

25 lines
579 B
Makefile
Raw Normal View History

2023-07-01 16:17:20 +02:00
.SILENT: ding clean update check docker release
.PHONY: ding clean update check docker release
ding:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -buildmode=pie -o ding cmd/ding/main.go
clean:
rm --force ding
update:
go get -u ./...
go mod tidy -v
check:
goreportcard-cli -v
govulncheck ./...
GOOS=linux staticcheck -f stylish ./...
docker:
docker build --build-arg VERSION=untagged --build-arg COMMIT=0000000000 -t ding:untagged .
docker run --rm --read-only --cap-drop=all --name ding ding:untagged --help
release:
goreleaser release --clean