File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1414
1515matrix :
1616 allow_failures :
17- - env : TEST=bandit
17+ - env : TEST=bandit
1818 - env : TEST=sourceclear
1919 - env : TEST=pep8
2020
@@ -52,7 +52,7 @@ script:
5252 bandit)
5353 # install bandit
5454 pip install bandit
55-
55+
5656 ## Run Bandit python static code
5757 bandit -r * -x venv,tests,ansible
5858 ;;
@@ -71,11 +71,11 @@ script:
7171 esac
7272
7373after_success :
74- # Push to docker repo
75- - docker tag $REPO $REPO:$TAG
76- - 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
7776 - |
78- 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
7979 docker login -u "$DOCKER_USER" -p "$DOCKER_PASS";
8080 docker push $REPO ;
8181 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