6
6
ARG CACHEBUST="{{ build_id }}"
7
7
{% - endif %}
8
8
9
- {% - if module .module_type == "containerfile" %}
9
+ {% - if module .module_type . typ () == "containerfile" %}
10
10
{% - include "modules/containerfile/containerfile.j2" %}
11
- {% - else if module .module_type == "copy" %}
11
+ {% - else if module .module_type . typ () == "copy" %}
12
12
{% - include "modules/copy/copy.j2" %}
13
13
{% - else %}
14
14
RUN \
@@ -22,15 +22,15 @@ RUN \
22
22
{% - else if module .is_local_source () %}
23
23
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
24
24
{% - else %}
25
- --mount=type=bind,from=ghcr.io/blue-build/modules/ {{ module.module_type }}:latest ,src=/modules,dst=/tmp/modules,rw \
25
+ --mount=type=bind,from={{ blue_build_utils::constants::BLUE_BUILD_MODULE_IMAGE_REF }}/ {{ module.module_type.typ() }}:{{ module.module_type.version() }} ,src=/modules,dst=/tmp/modules,rw \
26
26
{% - endif %}
27
- {% - if module .module_type == "akmods" %}
27
+ {% - if module .module_type . typ () == "akmods" %}
28
28
--mount=type=bind,from=stage-akmods-{{ module.generate_akmods_info(os_version).stage_name }},src=/rpms,dst=/tmp/rpms,rw \
29
29
{% - endif %}
30
30
--mount=type=bind,from={{ build_scripts_image }},src=/scripts/,dst=/tmp/scripts/ \
31
31
--mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-{{ recipe.name }}-{{ recipe.image_version }},sharing=locked \
32
32
--mount=type=cache,dst=/var/cache/libdnf5,id=dnf-cache-{{ recipe.name }}-{{ recipe.image_version }},sharing=locked \
33
- /tmp/scripts/run_module.sh '{{ module.module_type }}' '{{ module|json|safe }}'
33
+ /tmp/scripts/run_module.sh '{{ module.module_type.typ() }}' '{{ module|json|safe }}'
34
34
{% - endif %}
35
35
{% - endif %}
36
36
{% - endfor %}
45
45
ARG CACHEBUST="{{ build_id }}"
46
46
{% - endif %}
47
47
48
- {% - if module .module_type == "containerfile" %}
48
+ {% - if module .module_type . typ () == "containerfile" %}
49
49
{% - include "modules/containerfile/containerfile.j2" %}
50
- {% - else if module .module_type == "copy" %}
50
+ {% - else if module .module_type . typ () == "copy" %}
51
51
{% - include "modules/copy/copy.j2" %}
52
52
{% - else %}
53
53
RUN \
@@ -61,10 +61,10 @@ RUN \
61
61
{% - else if module .is_local_source () %}
62
62
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
63
63
{% - else %}
64
- --mount=type=bind,from=ghcr.io/blue-build/modules/ {{ module.module_type }}:latest ,src=/modules,dst=/tmp/modules,rw \
64
+ --mount=type=bind,from={{ blue_build_utils::constants::BLUE_BUILD_MODULE_IMAGE_REF }}/ {{ module.module_type.typ() }}:{{ module.module_type.version() }} ,src=/modules,dst=/tmp/modules,rw \
65
65
{% - endif %}
66
66
--mount=type=bind,from={{ build_scripts_image }},src=/scripts/,dst=/tmp/scripts/ \
67
- /tmp/scripts/run_module.sh '{{ module.module_type }}' '{{ module|json|safe }}'
67
+ /tmp/scripts/run_module.sh '{{ module.module_type.typ() }}' '{{ module|json|safe }}'
68
68
{% - endif %}
69
69
{% - endif %}
70
70
{% - endfor %}
0 commit comments