Travis 不会将 docker 图像推送到中心
Travis does not push docker image to hub
如标题所示,Travis 不想在成功测试通过后将 docker 图像推送到 docker hub?怎么了?我已经设置了 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 maciejwojtkowiak/todo .
- docker push maciejwojtkowiak/todo .
删除docker push
末尾的.
如标题所示,Travis 不想在成功测试通过后将 docker 图像推送到 docker hub?怎么了?我已经设置了 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 maciejwojtkowiak/todo .
- docker push maciejwojtkowiak/todo .
删除docker push
末尾的.