ci: change git describe command
This commit is contained in:
@@ -16,6 +16,6 @@ jobs:
|
||||
- name: Build tarball
|
||||
run: make tarball
|
||||
- name: Build rpm package
|
||||
run: rpmbuild -ba netoik-rp.spec
|
||||
run: rpmbuild -ba "${make name}.spec"
|
||||
- name: Upload rpm package
|
||||
run: make upload
|
||||
|
||||
6
Makefile
6
Makefile
@@ -1,9 +1,8 @@
|
||||
NAME = $(shell basename $(PWD))
|
||||
VERSION = $(shell git describe | sed 's/-/./g')
|
||||
NAME = netoik-rp
|
||||
VERSION = $(shell git describe --tags --abbrev=0)
|
||||
RELEASE = $(shell git rev-parse --short HEAD)
|
||||
BRANCH = $(shell git branch --show-current)
|
||||
BUILD_ARCH = noarch
|
||||
RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm
|
||||
|
||||
RPM_RPMDIR = $(shell rpm --eval '%{_rpmdir}')
|
||||
RPM_SBINDIR = $(shell rpm --eval '%{_sbindir}')
|
||||
@@ -11,6 +10,7 @@ RPM_SOURCEDIR = $(shell rpm --eval '%{_sourcedir}')
|
||||
RPM_SYSCONFDIR = $(shell rpm --eval '%{_sysconfdir}')
|
||||
RPM_UNITDIR = $(shell rpm --eval '%{_unitdir}')
|
||||
RPM_TARBALL_PATH = $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
|
||||
RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm
|
||||
|
||||
.PHONY: name
|
||||
name:
|
||||
|
||||
Reference in New Issue
Block a user