Home > Software engineering >  Travis does not push docker image to hub
Travis does not push docker image to hub

Time:10-22

As in title, Travis does not want to push docker image to docker hub after successfully test passing? What is wrong? I have already set env variabales DOCKER_PASSWORD and DOCKER_USERNAME. Any ideas?

language: python
sudo: required
services: 
  - docker

script:
  - docker-compose run web python manage.py test

after_success:
  - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  - docker build -t maciejwojtkowiak/todo . 
  - docker push maciejwojtkowiak/todo . 

CodePudding user response:

Remove the . at the end of the docker push

  • Related