---
- hosts: all
  tasks:
    - name: Login to Dockerhub
      command: "docker login -u {{ doker_hub_login_persister.user }} -p {{ doker_hub_login_persister.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/persister"

---
- hosts: all
  tasks:
    - name: Login to Dockerhub
      command: "docker login -u {{ doker_hub_login_persister.user }} -p {{ doker_hub_login_persister.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/persister:{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}"

Fix zuul publish docker image job
Fix zuul publish docker image job

Add tag to docker push commend

Change-Id: I43538b943176d81987db2f4ca139eb10f9b48385
