Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 1 | --- |
| 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. Bainbridge | ecfbd4d | 2016-11-14 13:18:39 -0800 | [diff] [blame] | 14 | local_action: command docker tag xosproject/xos-base {{ deploy_docker_registry }}/xosproject/xos-base:{{ deploy_docker_tag }} |
Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 15 | when: |
| 16 | xosdir.stat.exists == True |
| 17 | |
| 18 | - name: publish XOS base container image to local repo |
David K. Bainbridge | ecfbd4d | 2016-11-14 13:18:39 -0800 | [diff] [blame] | 19 | local_action: shell cd {{ xos_repo_dir }} && docker push {{ deploy_docker_registry }}/xosproject/xos-base:{{ deploy_docker_tag }} |
Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 20 | when: |
| 21 | xosdir.stat.exists == True |