magnum/playbooks/container-publish.yaml
Spyros Trigazis efff708625 Publish 1.16 k8s images
Missed from I35617f67af1157cb39d22a17f10defa26bce2f09

story: 2005124
task: 36320

Change-Id: I8b4d20fb393883ca700347d94ed9d7adb4d176f5
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-08-23 10:10:58 +02:00

33 lines
1.5 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 }}/{{ item.name }}:{{ kubernetes_version_v1_16 }}
with_items: "{{ kubernetes_images }}"
retries: 10
- command: docker push {{ magnum_repository }}/helm-client:{{ helm_version }}
retries: 10