---
- hosts: all
  tasks:
    - name: Login to Dockerhub
      command: "docker login -u {{ doker_hub_login.user }} -p {{ doker_hub_login.password }}"
      no_log: true

    - name: List images
      shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"

    - name: Push to Docker Hub all tags
      shell: "docker push monasca/api"

---
- hosts: all
  tasks:
    - name: Login to Dockerhub
      command: "docker login -u {{ doker_hub_login_api.user }} -p {{ doker_hub_login_api.password }}"
      no_log: true

    - name: List images
      shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"

    - name: Push to Docker Hub all tags
      shell: "docker push monasca/api"

Fix docker hub login variable
Fix docker hub login variable

Change-Id: Ibfef478998981956378f9082adcae95db8b9401d
Story: 2001694
Task: 29513
