[Fix] Use branch HEAD in make tarball

This commit is contained in:
samuel 2023-05-02 16:39:39 +02:00
parent 606760d54e
commit 5543d1f38c
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
NAME = netoik-cicd NAME = netoik-cicd
VERSION = $(shell [ -d ".git" ] && git describe | sed "s/-/./g") VERSION = $(shell [ -d ".git" ] && git describe | sed "s/-/./g")
BRANCH = $(shell [ -d ".git" ] && git branch --show-current)
TEMP_DIR = "${PWD}/.temp" TEMP_DIR = "${PWD}/.temp"
RPM_SOURCEDIR = $(shell rpm --eval "%{_sourcedir}") RPM_SOURCEDIR = $(shell rpm --eval "%{_sourcedir}")
@ -41,7 +40,7 @@ $(RPM_SOURCEDIR)/$(NAME)-%.tar.gz: *
--prefix="$(NAME)-$(VERSION)/" \ --prefix="$(NAME)-$(VERSION)/" \
--worktree-attributes \ --worktree-attributes \
--verbose \ --verbose \
"$(BRANCH)" HEAD
.PHONY: tarball .PHONY: tarball
tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz