Skip to content

Commit a87fcb9

Browse files
authored
Merge pull request #528 from aaronweaver/master
Working on Version Tagging for Docker.
2 parents 477c050 + 50bd8bd commit a87fcb9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
matrix:
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
7373
after_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

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)