blob: cb80ee5f00996242361a83c8b1e68c16c2ed1950 [file] [log] [blame]
Andy Bavierd2cab422017-07-24 16:38:24 -07001---
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 }}"