CORD-1240 Ensure rebuilt xos-ui gets published
Change-Id: I86046a7224ac0d8156c74ac992469d385630e713
diff --git a/roles/xos-core-publish/tasks/main.yml b/roles/xos-core-publish/tasks/main.yml
index 803f5a4..2f80638 100644
--- a/roles/xos-core-publish/tasks/main.yml
+++ b/roles/xos-core-publish/tasks/main.yml
@@ -1,6 +1,11 @@
---
# xos-core-deploy/tasks/main.yml
+- name: Remove old local UI image
+ docker_image:
+ name: "{{ deploy_docker_registry }}/xosproject/xos-ui:{{ deploy_docker_tag }}"
+ state: absent
+
- name: Tag and push the UI image
docker_image:
name: "xosproject/xos-ui:{{ build_docker_tag }}"