blob: 2e2a45c3e2a61045c08d81b7a04ef81fa54d86c4 [file] [log] [blame]
Michal Zegan3a7e0732018-12-19 11:51:26 +01001---
2- name: Load docker images and push into registry
3 block:
4 - set_fact:
5 component: "{{ (item.path | basename | splitext)[0] }}"
6
7 - name: Docker login
8 docker_login:
9 registry: "{{ runtime_images[component].registry }}"
10 username: admin
11 password: admin123
12
13 - name: Load and push component {{ component }}
14 docker_image:
15 name: "{{ runtime_images[component].registry }}{{ runtime_images[component].path }}"
16 tag: "{{ runtime_images[component].tag }}"
17 push: yes
18 load_path: "{{ item.path }}"
19