blob: 404889f496120eeff64fa2d08ff20f62df5b85c2 [file] [log] [blame]
Michal Zegan3a7e0732018-12-19 11:51:26 +01001---
2- name: Load docker images and push into registry
3 block:
Michal Ptacek200ae722019-03-21 12:32:20 +00004 - name: Register component name for docker login/load
5 set_fact:
Michal Zegan3a7e0732018-12-19 11:51:26 +01006 component: "{{ (item.path | basename | splitext)[0] }}"
7
8 - name: Docker login
9 docker_login:
10 registry: "{{ runtime_images[component].registry }}"
11 username: admin
12 password: admin123
13
14 - name: Load and push component {{ component }}
15 docker_image:
16 name: "{{ runtime_images[component].registry }}{{ runtime_images[component].path }}"
17 tag: "{{ runtime_images[component].tag }}"
Samuli Silviusf6f5fc42019-02-13 11:00:39 +020018 push: true
Michal Zegan3a7e0732018-12-19 11:51:26 +010019 load_path: "{{ item.path }}"
Michal Zegan8e5a7da2018-12-20 12:16:56 +010020 timeout: 120
Bartek Grzybowski76e017a2019-06-04 12:47:20 +020021 changed_when: false # for idempotence