Skip to content

Commit 5f5940f

Browse files
committed
Use build_image_generic for test images too
1 parent ee86ebf commit 5f5940f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

scripts/release/atomic_pipeline.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ def build_tests_image(build_configuration: BuildConfiguration):
104104
if python_version == "":
105105
raise Exception("Missing PYTHON_VERSION environment variable")
106106

107-
buildargs = dict({"PYTHON_VERSION": python_version})
107+
buildargs = {"PYTHON_VERSION": python_version}
108108

109-
pipeline_process_image(
110-
image_name,
109+
build_image_generic(
110+
image_name=image_name,
111111
dockerfile_path="docker/mongodb-kubernetes-tests/Dockerfile",
112112
build_configuration=build_configuration,
113-
dockerfile_args=buildargs,
113+
extra_args=buildargs,
114114
build_path="docker/mongodb-kubernetes-tests",
115115
)
116116

@@ -124,13 +124,13 @@ def build_mco_tests_image(build_configuration: BuildConfiguration):
124124
if golang_version == "":
125125
raise Exception("Missing GOLANG_VERSION environment variable")
126126

127-
buildargs = dict({"GOLANG_VERSION": golang_version})
127+
buildargs = {"GOLANG_VERSION": golang_version}
128128

129-
pipeline_process_image(
130-
image_name,
129+
build_image_generic(
130+
image_name=image_name,
131131
dockerfile_path="docker/mongodb-community-tests/Dockerfile",
132132
build_configuration=build_configuration,
133-
dockerfile_args=buildargs,
133+
extra_args=buildargs,
134134
)
135135

136136

@@ -265,6 +265,7 @@ def build_image_generic(
265265
dockerfile_path: str,
266266
build_configuration: BuildConfiguration,
267267
extra_args: dict | None = None,
268+
build_path: str = ".",
268269
):
269270
"""
270271
Build an image then (optionally) sign the result.
@@ -285,6 +286,7 @@ def build_image_generic(
285286
dockerfile_path=dockerfile_path,
286287
build_configuration=build_configuration,
287288
dockerfile_args=build_args,
289+
build_path=build_path,
288290
)
289291

290292
if build_configuration.sign:

0 commit comments

Comments
 (0)