Support official image builds with awx logos

This commit is contained in:
Matthew Jones
2017-08-30 13:40:18 -04:00
parent 067beb90c9
commit f1af6b9bf2
2 changed files with 33 additions and 5 deletions

View File

@@ -11,6 +11,21 @@
awx_version: "{{ awx_version_command.stdout }}"
when: awx_version is not defined
- name: Verify awx-logos directory exists for official install
stat:
path: "../../awx-logos"
delegate_to: localhost
register: logosdir
failed_when: logosdir.stat.isdir is not defined or not logosdir.stat.isdir
when: awx_official
- name: Copy logos for inclusion in sdist
synchronize:
src: "../../awx-logos/awx/ui/client/assets"
dest: "../awx/ui/client/"
delegate_to: localhost
when: awx_official
- name: Set sdist file name
set_fact:
awx_sdist_file: "awx-{{ awx_version }}.tar.gz"
@@ -19,6 +34,12 @@
debug:
msg: "{{ awx_sdist_file }}"
- name: Clean distribution
shell: make clean
args:
chdir: ..
delegate_to: localhost
- name: Build AWX distribution
shell: make sdist
args: