Skip to content

Commit 734edd4

Browse files
committed
fix(infra): Correct variable name in trial builds
The variable `BASE_IMAGES` was renamed to `BASE_IMAGE_DEFS` in the `base_images` module, but this change was not propagated to the trial build script, causing an `AttributeError`. This commit updates `build_and_push_test_images.py` to use the correct `BASE_IMAGE_DEFS` variable, resolving the error and allowing trial builds to run successfully.
1 parent e4bb26b commit 734edd4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

infra/build/functions/build_and_push_test_images.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ def gcb_build_and_push_images(test_image_tag: str, version_tag: str = None):
217217
test_image_names = []
218218
versions = [version_tag] if version_tag else BASE_IMAGE_VERSIONS
219219
for version in versions:
220-
for base_image in base_images.BASE_IMAGES:
221-
main_image_name, test_image_name = get_image_tags(base_image.name,
222-
test_image_tag, version)
220+
for base_image_def in base_images.BASE_IMAGE_DEFS:
221+
base_image = base_images.ImageConfig(version=version, **base_image_def)
222+
main_image_name, test_image_name = get_image_tags(
223+
base_image.name, test_image_tag, version)
223224
test_image_names.append(test_image_name)
224225

225226
if version == 'legacy':

0 commit comments

Comments
 (0)