From 4117f9bdb82fb33ccd0cbc6891435302ac5afae1 Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Tue, 22 Feb 2022 15:57:56 -0500 Subject: [PATCH] build-helm-charts.sh: manage tarball version Look for tarball version in a file named helm-charts-release-info.inc: - at top level of any git repo in the source tree - in $MY_REPO/utilities/utilities/build-info - fallback to the old behavior of deriving version information from the last RPM on the command line if all else fails New option --app-version-file to use a particular version file. Version file should look similar to: VERSION=22.02 RELEASE=0 Story: 2009875 Task: 44588 Signed-off-by: Davlet Panech Change-Id: Id3c450c404957d8a70d7485f4ae292ee96c11f09 --- build-tools/build-helm-charts.sh | 92 +++++++++++++++++++++++++++----- 1 file changed, 79 insertions(+), 13 deletions(-) diff --git a/build-tools/build-helm-charts.sh b/build-tools/build-helm-charts.sh index 2fa2ca21..1590e388 100755 --- a/build-tools/build-helm-charts.sh +++ b/build-tools/build-helm-charts.sh @@ -22,7 +22,10 @@ SUPPORTED_OS_ARGS=('centos') OS=centos LABEL="" APP_NAME="stx-openstack" +APP_VERSION_BASE="helm-charts-release-info.inc" +APP_VERSION_FILE="" APP_VERSION="" +APP_RPM_VERSION="" declare -a IMAGE_RECORDS declare -a PATCH_DEPENDENCIES declare -a APP_HELM_FILES @@ -31,7 +34,10 @@ declare -a APP_RPMS function usage { cat >&2 < ] [-a, --app ] [-r, --rpm ] [-i, --image-record ] [--label