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 }}" |
Samuli Silvius | f6f5fc4 | 2019-02-13 11:00:39 +0200 | [diff] [blame^] | 17 | push: true |
Michal Zegan | 3a7e073 | 2018-12-19 11:51:26 +0100 | [diff] [blame] | 18 | load_path: "{{ item.path }}" |
Michal Zegan | 8e5a7da | 2018-12-20 12:16:56 +0100 | [diff] [blame] | 19 | timeout: 120 |
Samuli Silvius | f6f5fc4 | 2019-02-13 11:00:39 +0200 | [diff] [blame^] | 20 | changed_when: false # for idenpotence |