e98b8e52dc
story: 2005124 task: 30581 Change-Id: I2e5afd0d9a35c8bb800c6aad9911d7c20df4cd78 Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
30 lines
1.4 KiB
YAML
30 lines
1.4 KiB
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.name }}:{{ kubernetes_version_v1_11 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_12 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_13 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_14 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_15 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/helm-client:{{ helm_version }}
|
|
retries: 10
|