mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
version: fix commit version in binary
So that "-v" reports the commit-id correctly. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
f76c76c2e6
commit
9a51ce475e
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -12,11 +12,11 @@ all: swagger binary binary-minimal debug test test-clean check
|
|||
|
||||
.PHONY: binary-minimal
|
||||
binary-minimal: swagger
|
||||
go build -tags minimal,containers_image_openpgp -v -ldflags "-X github.com/anuvu/zot/pkg/api.Commit=${COMMIT} -X github.com/anuvu/zot/pkg/api.BinaryType=minimal" -o bin/zot-minimal ./cmd/zot
|
||||
go build -tags minimal,containers_image_openpgp -v -ldflags "-X github.com/anuvu/zot/pkg/api/config.Commit=${COMMIT} -X github.com/anuvu/zot/pkg/api.BinaryType=minimal" -o bin/zot-minimal ./cmd/zot
|
||||
|
||||
.PHONY: binary
|
||||
binary: swagger
|
||||
go build -tags extended,containers_image_openpgp -v -ldflags "-X github.com/anuvu/zot/pkg/api.Commit=${COMMIT} -X github.com/anuvu/zot/pkg/api.BinaryType=extended" -o bin/zot ./cmd/zot
|
||||
go build -tags extended,containers_image_openpgp -v -ldflags "-X github.com/anuvu/zot/pkg/api/config.Commit=${COMMIT} -X github.com/anuvu/zot/pkg/api.BinaryType=extended" -o bin/zot ./cmd/zot
|
||||
|
||||
.PHONY: debug
|
||||
debug: swagger
|
||||
|
|
Loading…
Reference in a new issue