Application versioning based on build release
This change will automatically adjust versioning of the application tarball and python plugins to reflect the same version reported by SW_VERION in /etc/build.info. Test plan: PASS: build-pkgs -a & build-image PASS: Confirm that the tarball version matches the platform version PASS: Apply application Story: 2010929 Task: 49354 Change-Id: Ib7afcce8b43db358ed7fa6b9bf83c4d3abd8db64 Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
This commit is contained in:
parent
bde0b6c4da
commit
e4504dd0e1
@ -7,7 +7,8 @@ Build-Depends: debhelper-compat (= 13),
|
|||||||
python3-all,
|
python3-all,
|
||||||
python3-pbr,
|
python3-pbr,
|
||||||
python3-setuptools,
|
python3-setuptools,
|
||||||
python3-wheel
|
python3-wheel,
|
||||||
|
build-info
|
||||||
Standards-Version: 4.5.1
|
Standards-Version: 4.5.1
|
||||||
Homepage: https://www.starlingx.io
|
Homepage: https://www.starlingx.io
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ export APP_NAME = vault
|
|||||||
export PYBUILD_NAME = k8sapp-vault
|
export PYBUILD_NAME = k8sapp-vault
|
||||||
|
|
||||||
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
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 MINOR_PATCH = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
||||||
export PBR_VERSION = $(MAJOR).$(MINOR_PATCH)
|
export PBR_VERSION = $(MAJOR).$(MINOR_PATCH)
|
||||||
|
|
||||||
|
@ -8,7 +8,8 @@ Build-Depends: debhelper-compat (= 13),
|
|||||||
helm,
|
helm,
|
||||||
procps,
|
procps,
|
||||||
python3-k8sapp-vault,
|
python3-k8sapp-vault,
|
||||||
python3-k8sapp-vault-wheels
|
python3-k8sapp-vault-wheels,
|
||||||
|
build-info
|
||||||
Standards-Version: 4.5.1
|
Standards-Version: 4.5.1
|
||||||
Homepage: https://www.starlingx.io
|
Homepage: https://www.starlingx.io
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ export ROOT = debian/tmp
|
|||||||
export APP_FOLDER = $(ROOT)/usr/local/share/applications/helm
|
export APP_FOLDER = $(ROOT)/usr/local/share/applications/helm
|
||||||
|
|
||||||
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
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 REVISION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
||||||
|
|
||||||
export APP_NAME = vault
|
export APP_NAME = vault
|
||||||
|
Loading…
Reference in New Issue
Block a user