This separates out the module template logic so that it is easier to undertstand what each section does. This will also allow creating in repo documentation for any special modules that don't use a bash base.
7 lines
315 B
Django/Jinja
7 lines
315 B
Django/Jinja
{%- for info in recipe.modules_ext.get_akmods_info_list(os_version) %}
|
|
FROM scratch as stage-akmods-{{ info.stage_name }}
|
|
COPY --from=ghcr.io/ublue-os/{{ info.images.0 }} /rpms /rpms
|
|
{%- if let Some(nv_image) = info.images.1 %}
|
|
COPY --from=ghcr.io/ublue-os/{{ nv_image }} /rpms /rpms
|
|
{%- endif %}
|
|
{%- endfor %}
|