Travis doesnt push to hub

travis does not want to push docker image to docker hub after successfully test passing? what is wrong? or what am I doin wrong? I have already set env variabales DOCKER_PASSWORD and DOCKER_USERNAME

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 solarultima/todo . 
  - docker push solarultima/todo . 

You need to remove the . after

- docker build -t solarultima/todo . 
- docker push solarultima/todo .

So it looks like:

- docker build -t solarultima/todo
- docker push solarultima/todo

This should work.

1 Like

you’re really the travis oracle @montana!

Great to see @SolarUltima,

If you have any other problems - please let me know and I’ll be glad to help.

Cheers,
Montana Mendy
Travis CI Staff

Imprint