Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 1 | --- |
| 2 | - name: Remove old local images |
| 3 | docker_image: |
| 4 | name: "{{ deploy_docker_registry }}/{{ item.tags[0].split(':')[0] }}:{{ deploy_docker_tag }}" |
| 5 | state: absent |
| 6 | with_items: "{{ ib_built }} + {{ ib_pulled }}" |
| 7 | |
| 8 | - name: Tag and push the images managed by ImageBuilder |
| 9 | docker_image: |
| 10 | name: "{{ item.tags[0].split(':')[0] }}:{{ build_docker_tag }}" |
| 11 | repository: "{{ deploy_docker_registry }}/{{ item.tags[0].split(':')[0] }}:{{ deploy_docker_tag }}" |
| 12 | push: True |
| 13 | with_items: "{{ ib_built }} + {{ ib_pulled }}" |