magnum/playbooks/container-publish.yaml
Bharat Kunwar 67d5b08178 [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
2020-05-19 09:52:56 +00:00

24 lines
970 B
YAML

- 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