diff --git a/.travis.yml b/.travis.yml index d161cb07..61dbb0cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,10 +11,11 @@ env: global: - SECRET_KEY=SK - SUPPORTED_LANGUAGES="en pt" + - DOCKER_IMAGE_NAME=ilha/bothub-engine script: - flake8 - travis_wait coverage run manage.py test after_success: - coveralls - export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi` - - '[[ $TRAVIS_EVENT_TYPE == "push" && $TRAVIS_BRANCH == "master" || $TRAVIS_EVENT_TYPE == "push" && $TRAVIS_BRANCH == "develop" ]] && docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASS && docker-compose -f docker/docker-compose.yml build && docker push $DOCKER_HUB_REPO:$TAG' + - '[[ $TRAVIS_EVENT_TYPE == "push" && $TRAVIS_BRANCH == "master" || $TRAVIS_EVENT_TYPE == "push" && $TRAVIS_BRANCH == "develop" ]] && docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASS && docker-compose -f docker/docker-compose.yml build && docker push $DOCKER_IMAGE_NAME:$TAG' diff --git a/README.md b/README.md index e02d39cb..cd7b64fd 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Run ```pipenv run python ./manage.py fill_db_using_fake_data``` to fill database ## Production -Docker images available in [Bothub's Docker Hub repository](https://hub.docker.com/r/ilha/bothub/). +Docker images available in [Bothub's Docker Hub repository](https://hub.docker.com/r/ilha/bothub-engine/). ## Environment Variables diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 24a123d9..0be63776 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.3' services: bothub: - image: ${DOCKER_HUB_REPO:-ilha/bothub}:${TAG:-latest} + image: ${DOCKER_IMAGE_NAME:-ilha/bothub-engine}:${TAG:-latest} build: context: .. dockerfile: docker/Dockerfile