versioning is added

This commit is contained in:
Oleg Sheynin 2024-11-01 16:18:32 -04:00
parent d5017b1b14
commit 94415d1bd6
2 changed files with 7 additions and 4 deletions

View File

@ -1,14 +1,14 @@
#!/bin/bash
function usage {
echo "Usage: ${0} <app_path (e.g. market_data/md_recorder_monitor)> <version>"
echo "Usage: ${0} <app_path (e.g. market_data/md_recorder_monitor)> <project>"
exit
}
AppPath=${1}
CvttpyVersion=${2}
Project=${2}
if [ "${AppPath}" == "" ]
if [ "${Project}" == "" ]
then
usage
fi
@ -24,7 +24,9 @@ ImageName=${AppName}
ImageDir=${HOME}/docker_images
mkdir -p ${ImageDir}
Version=$(cat ${RootDir}/cvttpy/release_version.txt | awk -F, '{print $1}')
Version=$(cat ${RootDir}/${Project}/release_version.txt | awk -F, '{print $1}')
# Version=${ProjectVersion}
cd ${RootDir}

1
release_version.txt Normal file
View File

@ -0,0 +1 @@
0.1.3,testing building docker images