Skip to content

Commit f9bac69

Browse files
author
Vladimir Kotal
committed
fix version setting
1 parent f0fb9b3 commit f9bac69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/docker.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
1919
exit 0
2020
fi
2121

22+
# Allow Docker builds for release builds only.
23+
if [[ -z $TRAVIS_TAG ]]; then
24+
print "TRAVIS_TAG is empty"
25+
exit 1
26+
fi
27+
28+
VERSION="$TRAVIS_TAG"
29+
2230
# Build the image.
2331
docker build -t opengrok/docker:$VERSION -t opengrok/docker:latest .
2432
#

0 commit comments

Comments
 (0)