Skip to content

Commit 65ac65f

Browse files
committed
CH-131 fix: Only include base images build on codefresh configuration when necessary
1 parent 7d5c032 commit 65ac65f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tools/deployment-cli-tools/ch_cli_tools/codefresh.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,11 @@ def add_unit_test_step(app_config: ApplicationHarnessConfig):
261261
image=image_tag_with_variables(app_name, tag, base_image_name),
262262
)
263263

264-
codefresh_steps_from_base_path(join(root_path, BASE_IMAGES_PATH), CD_BUILD_STEP_BASE,
265-
fixed_context=relpath(root_path, os.getcwd()), include=helm_values[KEY_TASK_IMAGES].keys())
266-
codefresh_steps_from_base_path(join(root_path, STATIC_IMAGES_PATH), CD_BUILD_STEP_STATIC,
267-
include=helm_values[KEY_TASK_IMAGES].keys())
264+
if helm_values[KEY_TASK_IMAGES]:
265+
codefresh_steps_from_base_path(join(root_path, BASE_IMAGES_PATH), CD_BUILD_STEP_BASE,
266+
fixed_context=relpath(root_path, os.getcwd()), include=helm_values[KEY_TASK_IMAGES].keys())
267+
codefresh_steps_from_base_path(join(root_path, STATIC_IMAGES_PATH), CD_BUILD_STEP_STATIC,
268+
include=helm_values[KEY_TASK_IMAGES].keys())
268269

269270
codefresh_steps_from_base_path(join(
270271
root_path, APPS_PATH), CD_BUILD_STEP_PARALLEL)

0 commit comments

Comments
 (0)