@@ -104,13 +104,13 @@ def build_tests_image(build_configuration: BuildConfiguration):
104
104
if python_version == "" :
105
105
raise Exception ("Missing PYTHON_VERSION environment variable" )
106
106
107
- buildargs = dict ( {"PYTHON_VERSION" : python_version })
107
+ buildargs = {"PYTHON_VERSION" : python_version }
108
108
109
- pipeline_process_image (
110
- image_name ,
109
+ build_image_generic (
110
+ image_name = image_name ,
111
111
dockerfile_path = "docker/mongodb-kubernetes-tests/Dockerfile" ,
112
112
build_configuration = build_configuration ,
113
- dockerfile_args = buildargs ,
113
+ extra_args = buildargs ,
114
114
build_path = "docker/mongodb-kubernetes-tests" ,
115
115
)
116
116
@@ -124,13 +124,13 @@ def build_mco_tests_image(build_configuration: BuildConfiguration):
124
124
if golang_version == "" :
125
125
raise Exception ("Missing GOLANG_VERSION environment variable" )
126
126
127
- buildargs = dict ( {"GOLANG_VERSION" : golang_version })
127
+ buildargs = {"GOLANG_VERSION" : golang_version }
128
128
129
- pipeline_process_image (
130
- image_name ,
129
+ build_image_generic (
130
+ image_name = image_name ,
131
131
dockerfile_path = "docker/mongodb-community-tests/Dockerfile" ,
132
132
build_configuration = build_configuration ,
133
- dockerfile_args = buildargs ,
133
+ extra_args = buildargs ,
134
134
)
135
135
136
136
@@ -265,6 +265,7 @@ def build_image_generic(
265
265
dockerfile_path : str ,
266
266
build_configuration : BuildConfiguration ,
267
267
extra_args : dict | None = None ,
268
+ build_path : str = "." ,
268
269
):
269
270
"""
270
271
Build an image then (optionally) sign the result.
@@ -285,6 +286,7 @@ def build_image_generic(
285
286
dockerfile_path = dockerfile_path ,
286
287
build_configuration = build_configuration ,
287
288
dockerfile_args = build_args ,
289
+ build_path = build_path ,
288
290
)
289
291
290
292
if build_configuration .sign :
0 commit comments