Refactor image_build and image_push roles

Primary changes are:

- Generalized variable names (remove "docker")
- Add explicit "push" variable rather than checking if the "registry" variable is defined.
- Allow for passing in version as build arg
This commit is contained in:
Shane McDonald
2021-10-12 18:50:25 -04:00
parent 84ffa4a5b7
commit c9b53cf975
8 changed files with 68 additions and 45 deletions

View File

@@ -54,6 +54,9 @@ ADD requirements/requirements.txt \
RUN cd /tmp && make requirements_awx
ARG VERSION
ARG SETUPTOOLS_SCM_PRETEND_VERSION
{% if (build_dev|bool) or (kube_dev|bool) %}
ADD requirements/requirements_dev.txt /tmp/requirements
RUN cd /tmp && make requirements_awx_dev