versioning is added
This commit is contained in:
parent
d5017b1b14
commit
94415d1bd6
10
build.sh
10
build.sh
@ -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
1
release_version.txt
Normal file
@ -0,0 +1 @@
|
||||
0.1.3,testing building docker images
|
||||
Loading…
x
Reference in New Issue
Block a user