@@ -19,17 +19,18 @@ RUN \
19
19
{% - endif %}
20
20
{% - if let Some (source ) = module .get_non_local_source () %}
21
21
--mount=type=bind,from={{ source }},src=/modules,dst=/tmp/modules,rw \
22
- {% - else %}
22
+ {% - else if module . is_local_source () %}
23
23
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
24
+ {% - else %}
25
+ --mount=type=bind,from=ghcr.io/blue-build/modules/{{ module.module_type }}:latest,src=/modules,dst=/tmp/modules,rw \
24
26
{% - endif %}
25
27
{% - if module .module_type == "akmods" %}
26
28
--mount=type=bind,from=stage-akmods-{{ module.generate_akmods_info(os_version).stage_name }},src=/rpms,dst=/tmp/rpms,rw \
27
29
{% - endif %}
28
30
--mount=type=bind,from={{ build_scripts_image }},src=/scripts/,dst=/tmp/scripts/ \
29
31
--mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-{{ recipe.name }}-{{ recipe.image_version }},sharing=locked \
30
32
--mount=type=cache,dst=/var/cache/libdnf5,id=dnf-cache-{{ recipe.name }}-{{ recipe.image_version }},sharing=locked \
31
- /tmp/scripts/run_module.sh '{{ module.module_type }}' '{{ module|json|safe }}' \
32
- && ostree container commit
33
+ /tmp/scripts/run_module.sh '{{ module.module_type }}' '{{ module|json|safe }}'
33
34
{% - endif %}
34
35
{% - endif %}
35
36
{% - endfor %}
57
58
{% - endif %}
58
59
{% - if let Some (source ) = module .get_non_local_source () %}
59
60
--mount=type=bind,from={{ source }},src=/modules,dst=/tmp/modules,rw \
60
- {% - else %}
61
+ {% - else if module . is_local_source () %}
61
62
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
63
+ {% - else %}
64
+ --mount=type=bind,from=ghcr.io/blue-build/modules/{{ module.module_type }}:latest,src=/modules,dst=/tmp/modules,rw \
62
65
{% - endif %}
63
66
--mount=type=bind,from={{ build_scripts_image }},src=/scripts/,dst=/tmp/scripts/ \
64
67
/tmp/scripts/run_module.sh '{{ module.module_type }}' '{{ module|json|safe }}'
0 commit comments