Skip to content

Commit 50bd8bd

Browse files
committed
Adding version to docker hub.
1 parent f347d1e commit 50bd8bd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,11 @@ script:
7171
esac
7272
7373
after_success:
74-
#Push to docker repo
75-
- echo $TRAVIS_TAG
76-
77-
- docker tag $REPO $REPO:$TAG
78-
- docker tag $REPO $REPO:travis-$TRAVIS_BUILD_NUMBER
74+
#Push to docker repo only if branch is master and this is a release
75+
- docker tag $REPO $REPO:$TRAVIS_TAG
7976
- |
80-
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TEST" == "integration-test" ] && [ "$DOCKER_USER" != "" ] && [ "$DOCKER_PASS" != "" ]; then
77+
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_TAG" != "" ] && [ "$TEST" == "integration-test" ] && [ "$DOCKER_USER" != "" ] && [ "$DOCKER_PASS" != "" ]; then
78+
docker tag $REPO $REPO:$TAG
8179
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS";
8280
docker push $REPO ;
8381
fi

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa
66

7-
__version__ = '1.2.4'
7+
__version__ = '1.2.5'
88
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
99
__docs__ = 'http://defectdojo.readthedocs.io/'
1010
__demo__ = 'http://defectdojo.pythonanywhere.com/'

0 commit comments

Comments
 (0)