mirror of
https://github.com/fosrl/newt.git
synced 2026-04-14 13:56:37 +00:00
Add ldflags version to local
This commit is contained in:
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ VERSION ?= dev
|
|||||||
LDFLAGS = -X main.newtVersion=$(VERSION)
|
LDFLAGS = -X main.newtVersion=$(VERSION)
|
||||||
|
|
||||||
local:
|
local:
|
||||||
CGO_ENABLED=0 go build -o ./bin/newt
|
CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o ./bin/newt
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t fosrl/newt:latest .
|
docker build -t fosrl/newt:latest .
|
||||||
|
|||||||
Reference in New Issue
Block a user