CORD-1401 Publish images managed by ImageBuilder

Change-Id: Ia500f1bbd2726f11874d967e56f52e0534153732
diff --git a/roles/imagebuilder-publish/tasks/main.yml b/roles/imagebuilder-publish/tasks/main.yml
new file mode 100644
index 0000000..cb80ee5
--- /dev/null
+++ b/roles/imagebuilder-publish/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+- 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 }}"
\ No newline at end of file