fix: auto-detect release version from git tag
This commit is contained in:
parent
4556772ee8
commit
dae9026410
@ -1,2 +1,3 @@
|
|||||||
# renovate: datasource=github-releases depName=OpenPrinting/cups versioning=loose
|
# renovate: datasource=github-releases depName=OpenPrinting/cups versioning=loose
|
||||||
export CUPS_VERSION="${CUPS_VERSION:-v2.4.1}"
|
export CUPS_VERSION="${CUPS_VERSION:-v2.4.1}"
|
||||||
|
export CUPS_RELEASE="${DRONE_TAG##*-}"
|
||||||
|
2
Makefile
2
Makefile
@ -12,7 +12,7 @@ prepare:
|
|||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
source $(WORKDIR)/.drone.env && \
|
source $(WORKDIR)/.drone.env && \
|
||||||
rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
rpmbuild -ba --without libusb1 --define "release_ $${CUPS_RELEASE:-0}" --define "version_ $${CUPS_VERSION##v}" cups.spec
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Reference in New Issue
Block a user