Skip to content

Commit 7b99a95

Browse files
committed
release 2.2.0
1 parent 8c97747 commit 7b99a95

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

release.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,25 @@ $(dirname $0)/docker.sh
2020

2121
# check branch and set version
2222
if [ "${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
2432
elif [ "${BRANCH}" = "develop" ]; then
2533
VERSION="develop"
34+
TAGS="${VERSION}"
2635
else
2736
exit 0
2837
fi
2938

3039
# tag all images and push if needed
3140
for 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
3847
done
3948

4049
for 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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def description():
99

1010

1111
setup(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(),

0 commit comments

Comments
 (0)