[Fix] Use branch HEAD in make tarball
This commit is contained in:
parent
606760d54e
commit
5543d1f38c
3
Makefile
3
Makefile
|
@ -1,6 +1,5 @@
|
|||
NAME = netoik-cicd
|
||||
VERSION = $(shell [ -d ".git" ] && git describe | sed "s/-/./g")
|
||||
BRANCH = $(shell [ -d ".git" ] && git branch --show-current)
|
||||
|
||||
TEMP_DIR = "${PWD}/.temp"
|
||||
RPM_SOURCEDIR = $(shell rpm --eval "%{_sourcedir}")
|
||||
|
@ -41,7 +40,7 @@ $(RPM_SOURCEDIR)/$(NAME)-%.tar.gz: *
|
|||
--prefix="$(NAME)-$(VERSION)/" \
|
||||
--worktree-attributes \
|
||||
--verbose \
|
||||
"$(BRANCH)"
|
||||
HEAD
|
||||
|
||||
.PHONY: tarball
|
||||
tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
|
||||
|
|
Loading…
Reference in New Issue