File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,25 @@ $(dirname $0)/docker.sh
2020
2121# check branch and set version
2222if [ " ${BRANCH} " = " master" ]; then
23- VERSION=${VERSION:- " 2.1.1 2.1 2 latest" }
23+ VERSION=$( grep version setup.py | sed " s/.*'\([0-9\.]*\)'.*/\1/" )
24+ TAGS=" latest"
25+ TMPVERSION=" ${VERSION} "
26+ OLDVERSION=" "
27+ while [ " $OLDVERSION " != " $TMPVERSION " ]; do
28+ TAGS=" ${TAGS} ${TMPVERSION} "
29+ OLDVERSION=" ${TMPVERSION} "
30+ TMPVERSION=$( echo ${OLDVERSION} | sed ' s/\.[0-9]*$//' )
31+ done
2432elif [ " ${BRANCH} " = " develop" ]; then
2533 VERSION=" develop"
34+ TAGS=" ${VERSION} "
2635else
2736 exit 0
2837fi
2938
3039# tag all images and push if needed
3140for i in pyclowder pyclowder-python3 extractors-monitor extractors-wordcount; do
32- for v in ${VERSION } ; do
41+ for v in ${TAGS } ; do
3342 if [ " $v " != " latest" -o " $SERVER " != " " ]; then
3443 ${DEBUG} docker tag clowder/${i} :latest ${SERVER} clowder/${i} :${v}
3544 fi
@@ -38,7 +47,7 @@ for i in pyclowder pyclowder-python3 extractors-monitor extractors-wordcount; do
3847done
3948
4049for i in pyclowder pyclowder-python3 extractors-binary-preview extractors-simple-extractor extractors-simple-extractor-python3 extractors-simple-r-extractor extractors-simple-r-extractor-python3; do
41- for v in ${VERSION } ; do
50+ for v in ${TAGS } ; do
4251 if [ " $v " != " latest" ]; then
4352 ${DEBUG} docker tag clowder/${i} :onbuild ${SERVER} clowder/${i} :${v} -onbuild
4453 ${DEBUG} docker push ${SERVER} clowder/${i} :${v} -onbuild
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def description():
99
1010
1111setup (name = 'pyclowder' ,
12- version = '2.1.1 ' ,
12+ version = '2.2.0 ' ,
1313 packages = find_packages (),
1414 description = 'Python SDK for the Clowder Data Management System' ,
1515 long_description = description (),
You can’t perform that action at this time.
0 commit comments