Fix injecting commit, branch, and build info
This commit is contained in:
parent
b376fdc87d
commit
11c3fce812
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -75,11 +75,11 @@ commit: vet fmt lint test build
|
||||||
|
|
||||||
## release: Build a release binary of core
|
## release: Build a release binary of core
|
||||||
release:
|
release:
|
||||||
CGO_ENABLED=${CGO_ENABLED} GOOS=${GOOS} GOARCH=${GOARCH} go build -o core -ldflags="-s -w -X github.com/datarhei/core/app.Commit=$(COMMIT) -X github.com/datarhei/core/app.Branch=$(BRANCH) -X github.com/datarhei/core/app.Build=$(BUILD)"
|
CGO_ENABLED=${CGO_ENABLED} GOOS=${GOOS} GOARCH=${GOARCH} go build -o core -ldflags="-s -w -X github.com/datarhei/core/v16/app.Commit=$(COMMIT) -X github.com/datarhei/core/v16/app.Branch=$(BRANCH) -X github.com/datarhei/core/v16/app.Build=$(BUILD)"
|
||||||
|
|
||||||
# github workflow workaround
|
# github workflow workaround
|
||||||
release_linux:
|
release_linux:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=${OSARCH} go build -o core -ldflags="-s -w -X github.com/datarhei/core/app.Commit=$(COMMIT) -X github.com/datarhei/core/app.Branch=$(BRANCH) -X github.com/datarhei/core/app.Build=$(BUILD)"
|
CGO_ENABLED=0 GOOS=linux GOARCH=${OSARCH} go build -o core -ldflags="-s -w -X github.com/datarhei/core/v16/app.Commit=$(COMMIT) -X github.com/datarhei/core/v16/app.Branch=$(BRANCH) -X github.com/datarhei/core/v16/app.Build=$(BUILD)"
|
||||||
|
|
||||||
## docker: Build standard Docker image
|
## docker: Build standard Docker image
|
||||||
docker:
|
docker:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue