mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-26 21:36:31 +02:00
chore: add run target to build and launch zot
This commit is contained in:
parent
b325477870
commit
beffef02d7
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -3,7 +3,7 @@
|
|||
VERSION ?= 0.0.0
|
||||
LDFLAGS := -s -w -X main.version=$(VERSION)
|
||||
|
||||
.PHONY: build install test lint fmt clean release
|
||||
.PHONY: build install test lint fmt clean release run
|
||||
|
||||
build:
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o bin/zot ./cmd/zot
|
||||
|
|
@ -14,6 +14,9 @@ install:
|
|||
test:
|
||||
go test -race ./...
|
||||
|
||||
run: build
|
||||
./bin/zot
|
||||
|
||||
lint:
|
||||
go vet ./...
|
||||
@test -z "$$(gofmt -l . | tee /dev/stderr)" || (echo "gofmt issues"; exit 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue