mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-04 15:16:58 +00:00
Merge pull request #186 from ncdc/version-edits
Include git describe info in binary names.
This commit is contained in:
@@ -161,6 +161,7 @@ all-tar-bin: $(addprefix tar-bin-, $(CLI_PLATFORMS))
|
||||
tar-bin-%:
|
||||
@$(MAKE) ARCH=$* tar-bin
|
||||
|
||||
GIT_DESCRIBE = $(shell git describe --tags --always --dirty)
|
||||
tar-bin: build
|
||||
mkdir -p _output/release
|
||||
|
||||
@@ -169,7 +170,7 @@ tar-bin: build
|
||||
tar \
|
||||
-C _output/bin/$(GOOS)/$(GOARCH) \
|
||||
--files-from=- \
|
||||
-zcf _output/release/$(BIN)-$(GOOS)-$(GOARCH).tar.gz
|
||||
-zcf _output/release/$(BIN)-$(GIT_DESCRIBE)-$(GOOS)-$(GOARCH).tar.gz
|
||||
|
||||
build-dirs:
|
||||
@mkdir -p _output/bin/$(GOOS)/$(GOARCH)
|
||||
|
||||
Reference in New Issue
Block a user