diff --git a/.travis.yml b/.travis.yml index 1f78921f..500f309c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,13 @@ after_success: docker tag $REPO:$COMMIT $REPO:$TAG docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER docker push $REPO + cd docs-importer + export REPO=sismics/docs-importer + export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi` + docker build -f Dockerfile -t $REPO:$COMMIT . + docker tag $REPO:$COMMIT $REPO:$TAG + docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER + docker push $REPO fi env: global: