Michal Zegan | 3a7e073 | 2018-12-19 11:51:26 +0100 | [diff] [blame] | 1 | --- |
| 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 Zegan | 8e5a7da | 2018-12-20 12:16:56 +0100 | [diff] [blame^] | 19 | timeout: 120 |