blob: fb8d7d82f8c12e110a6b18669c49d32d58a6773f [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 }}"
Michal Zegan8e5a7da2018-12-20 12:16:56 +010019 timeout: 120