blob: cb80ee5f00996242361a83c8b1e68c16c2ed1950 [file] [log] [blame]
---
- name: Remove old local images
docker_image:
name: "{{ deploy_docker_registry }}/{{ item.tags[0].split(':')[0] }}:{{ deploy_docker_tag }}"
state: absent
with_items: "{{ ib_built }} + {{ ib_pulled }}"
- name: Tag and push the images managed by ImageBuilder
docker_image:
name: "{{ item.tags[0].split(':')[0] }}:{{ build_docker_tag }}"
repository: "{{ deploy_docker_registry }}/{{ item.tags[0].split(':')[0] }}:{{ deploy_docker_tag }}"
push: True
with_items: "{{ ib_built }} + {{ ib_pulled }}"