blob: ca22035c0fcd0d55e6a98964cbb7325775efa795 [file] [log] [blame]
Andy Bavier175cfaf2017-03-13 18:09:21 -04001---
2# publish-xos-docker-images/tasks/main.yml
3
4# Remove the old local images to force them to be re-pushed
5- name: Remove old local XOS images
6 docker_image:
7 name: "{{ deploy_docker_registry }}/{{ item.name }}:{{ deploy_docker_tag }}"
8 state: absent
9 with_items: "{{ docker_images | selectattr('publish') | list }}"
10
11- name: Tag and push locally built images to docker registry
12 docker_image:
13 name: "{{ item.name }}:{{ deploy_docker_tag }}"
14 repository: "{{ deploy_docker_registry }}/{{ item.name }}:{{ deploy_docker_tag }}"
15 push: True
16 with_items: "{{ docker_images | selectattr('publish') | list }}"
17
18# Remove the old local images to force them to be re-pushed
19- name: Remove old local XOS GUI extension images
20 docker_image:
21 name: "{{ deploy_docker_registry }}/xosproject/gui-extension-{{ item.name }}:{{ deploy_docker_tag }}"
22 state: absent
23 with_items: "{{ enabled_gui_extensions }}"
24
25- name: Tag and push locally built images to docker registry
26 docker_image:
27 name: "xosproject/gui-extension-{{ item.name }}:{{ deploy_docker_tag }}"
28 repository: "{{ deploy_docker_registry }}/xosproject/gui-extension-{{ item.name }}:{{ deploy_docker_tag }}"
29 push: True
30 with_items: "{{ enabled_gui_extensions }}"
31
32# Remove the old local images to force them to be re-pushed
33- name: Remove old local miscellaneous images
34 docker_image:
35 name: "{{ deploy_docker_registry }}/{{ item }}"
36 state: absent
37 with_items: "{{ misc_docker_images }}"
38
39# Just needed for onboarding, will go away
40- name: Tag and push miscellaneous images
41 docker_image:
42 name: "{{ item }}"
43 repository: "{{ deploy_docker_registry }}/{{ item }}"
44 push: True
45 with_items: "{{ misc_docker_images }}"