ding/Makefile
adrien 1d7c7fba86
All checks were successful
goreleaser / goreleaser (push) Successful in 56s
First commit
2023-07-01 16:17:20 +02:00

25 lines
579 B
Makefile

.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