- hosts: all
  tasks:
    - include_vars: container-builder-vars.yaml

    - name: Push images to DockerHub
      block:
        - command: docker login -u {{ magnum_docker_login.user }} -p {{ magnum_docker_login.password }}
          no_log: True
          retries: 5
        - command: docker push {{ magnum_repository }}/{{ item.name }}:{{ item.tag }}
          with_items: "{{ magnum_images }}"
          retries: 10
        - command: docker push {{ magnum_repository }}/{{ item[1].name }}:{{ item[0].version }}
          with_nested:
            - "{{ kubernetes_versions }}"
            - "{{ kubernetes_images }}"
          retries: 10
        - command: docker push {{ magnum_repository }}/helm-client:{{ helm_version }}
          retries: 10
        - command: docker push {{ magnum_repository }}/cluster-autoscaler:v{{ item.version }}
          with_items: "{{ cluster_autoscaler_versions }}"
          retries: 10

- hosts: all
  tasks:
    - include_vars: container-builder-vars.yaml

    - name: Push images to DockerHub
      block:
        - command: docker login -u {{ magnum_docker_login.user }} -p {{ magnum_docker_login.password }}
          no_log: True
          retries: 5
        - command: docker push {{ magnum_repository }}/{{ item.name }}:{{ item.tag }}
          with_items: "{{ magnum_images }}"
          retries: 10
        - command: docker push {{ magnum_repository }}/{{ item[1].name }}:{{ item[0].version }}
          with_nested:
            - "{{ kubernetes_versions }}"
            - "{{ kubernetes_images }}"
          retries: 10
        - command: docker push {{ magnum_repository }}/helm-client:{{ item.version }}
          with_items: "{{ helm_versions }}"
          retries: 10
        - command: docker push {{ magnum_repository }}/cluster-autoscaler:v{{ item.version }}
          with_items: "{{ cluster_autoscaler_versions }}"
          retries: 10

Fix publish of helm-client containers
[ci] Fix publish of helm-client containers

The publish step was using helm_version which has been renamed to
helm_versions to accomodate build of v2 and v3 clients.

Story: 2007514
Task: 39733

Change-Id: I69aa13b708a95530a4a86eb066885f3e56a91273
