blob: 847a4e79124fae552fe685d2dac759bac28a5849 [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
David K. Bainbridgeecfbd4d2016-11-14 13:18:39 -080014 local_action: command docker tag xosproject/xos-base {{ deploy_docker_registry }}/xosproject/xos-base:{{ deploy_docker_tag }}
Scott Bakerc93cef92016-10-27 14:07:47 -070015 when:
16 xosdir.stat.exists == True
17
18- name: publish XOS base container image to local repo
David K. Bainbridgeecfbd4d2016-11-14 13:18:39 -080019 local_action: shell cd {{ xos_repo_dir }} && docker push {{ deploy_docker_registry }}/xosproject/xos-base:{{ deploy_docker_tag }}
Scott Bakerc93cef92016-10-27 14:07:47 -070020 when:
21 xosdir.stat.exists == True