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 .
Remove the .
at the end of the docker push
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.