mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 15:08:03 -03:30
26 lines
634 B
YAML
26 lines
634 B
YAML
---
|
|
- name: Build AWX Docker Images
|
|
hosts: localhost
|
|
gather_facts: true
|
|
tasks:
|
|
- name: Get version from SCM if not explicitly provided
|
|
shell: |
|
|
python3 -m setuptools_scm | cut -d + -f -1
|
|
args:
|
|
chdir: '../../'
|
|
register: setup_py_version
|
|
when: awx_version is not defined
|
|
|
|
- name: Set awx_version
|
|
set_fact:
|
|
awx_version: "{{ setup_py_version.stdout }}"
|
|
when: awx_version is not defined
|
|
|
|
- include_role:
|
|
name: dockerfile
|
|
- include_role:
|
|
name: image_build
|
|
- include_role:
|
|
name: image_push
|
|
when: push | default(false) | bool
|