blob: f71d6990a0967116cdceb16c8b4ad261fcb3552d [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 }}"
Samuli Silviusf6f5fc42019-02-13 11:00:39 +020017 push: true
Michal Zegan3a7e0732018-12-19 11:51:26 +010018 load_path: "{{ item.path }}"
Michal Zegan8e5a7da2018-12-20 12:16:56 +010019 timeout: 120
Samuli Silviusf6f5fc42019-02-13 11:00:39 +020020 changed_when: false # for idenpotence