Merge "Application versioning based on build release"

This commit is contained in:
Zuul 2024-01-08 16:49:10 +00:00 committed by Gerrit Code Review
commit 3d03d5e80c
4 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,8 @@ Build-Depends: debhelper-compat (= 13),
python3-all,
python3-pbr,
python3-setuptools,
python3-wheel
python3-wheel,
build-info
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io

View File

@ -5,7 +5,7 @@ export APP_NAME = power-metrics
export PYBUILD_NAME = k8sapp-power-metrics
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
export MAJOR = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
export MAJOR = $(shell cat /etc/build.info | grep SW_VERSION | cut -d'"' -f2)
export MINOR_PATCH = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
export PBR_VERSION = $(MAJOR).$(MINOR_PATCH)

View File

@ -8,6 +8,7 @@ Build-Depends: debhelper-compat (= 13),
python3-k8sapp-power-metrics,
python3-k8sapp-power-metrics-wheels,
telegraf-helm,
build-info
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io

View File

@ -5,7 +5,7 @@ export ROOT = debian/tmp
export APP_FOLDER = $(ROOT)/usr/local/share/applications/helm
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
export RELEASE = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
export RELEASE = $(shell cat /etc/build.info | grep SW_VERSION | cut -d'"' -f2)
export REVISION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
export APP_NAME = power-metrics