File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,11 @@ script:
7171 esac
7272
7373after_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
Original file line number Diff line number Diff line change 44# Django starts so that shared_task will use this app.
55from .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/'
You can’t perform that action at this time.
0 commit comments