blob: 6bf54a0462c38475acc5e86bba6cd96007b38c4e [file] [log] [blame]
Scott Bakerc93cef92016-10-27 14:07:47 -07001---
2# tasks for xos-build role
3
4- name: Check to see if orchestration/xos directory exists
5 local_action: stat path={{ xos_repo_dir }}
6 register: xosdir
7
8- name: build XOS base container image
9 local_action: shell cd {{ xos_repo_dir }} && make base
10 when:
11 xosdir.stat.exists == True
12
13- name: tag xos base container image
14 local_action: command docker tag xosproject/xos-base {{ docker_registry }}/xosproject/xos-base:candidate
15 when:
16 xosdir.stat.exists == True
17
18- name: publish XOS base container image to local repo
19 local_action: shell cd {{ xos_repo_dir }} && docker push {{ docker_registry }}/xosproject/xos-base:candidate
20 when:
21 xosdir.stat.exists == True
22
23
24