diff --git a/agent/containers/images/Makefile b/agent/containers/images/Makefile index 6a47ccb075..89b980d430 100644 --- a/agent/containers/images/Makefile +++ b/agent/containers/images/Makefile @@ -50,7 +50,7 @@ URL_PREFIX = https://copr-be.cloud.fedoraproject.org/results/${COPR_USER} # the final repo name would be "pbench-test". TEST = _TEST_SUFFIX = $(if $(TEST),-$(TEST),"") -_PBENCH_REPO_NAME = pbench${_TEST_SUFFIX} +_PBENCH_REPO_NAME = pbench-$(shell grep -oE '[0-9]+\.[0-9]+' ${_PBENCH_TOP}/agent/VERSION)${_TEST_SUFFIX} # By default we use the pbench Quay.io organization for the image # repository. You can override this default using an environment diff --git a/utils/rpm.mk b/utils/rpm.mk index ec0691f5b9..8e1a36f31b 100644 --- a/utils/rpm.mk +++ b/utils/rpm.mk @@ -27,6 +27,7 @@ include ${PBENCHTOP}/utils/utils.mk prog = pbench-${component} VERSION := $(shell cat ${PBENCHTOP}/${component}/VERSION) +MAJORMINOR := $(shell grep -oE '[0-9]+\.[0-9]+' ${PBENCHTOP}/${component}/VERSION) TBDIR = ${TMPDIR}/${prog}-${VERSION} # If we are building for a distro, use a distro-specific suffix on the build and @@ -116,7 +117,7 @@ endif COPR_TARGETS = copr copr-test .PHONY: ${COPR_TARGETS} ${COPR_TARGETS}: $(RPMSRPM)/$(prog)-$(VERSION)-$(seqno)g$(sha1).src.rpm - copr-cli build ${CHROOTS} $(_copr_user)/$(subst copr,pbench,$@) $(RPMSRPM)/$(prog)-$(VERSION)-$(seqno)g$(sha1).src.rpm + copr-cli build ${CHROOTS} $(_copr_user)/$(subst copr,pbench-$(MAJORMINOR),$@) $(RPMSRPM)/$(prog)-$(VERSION)-$(seqno)g$(sha1).src.rpm # Determine the present working directory relative to ${PBENCHTOP} so that we # can find it inside the container, where the source tree might be in a