Skip to content

Commit

Permalink
fix(build-pipeline): spark version missing from input images
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Aug 19, 2024
1 parent 42da7e4 commit e7affa8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions utils/generate-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ def generate_matrix(versions, input_image, output_image, spark_version,
"output_image_main_tag": f"{DH_ORGA}/{args.images_prefix}-{output}",
language_key: version}
if spark_version:
version_entry["output_image_main_tag"] += f"-spark{spark_version}"
suffix_spark = f"-spark{spark_version}"
if "spark" in base:
version_entry["base_image_tag"] += suffix_spark
version_entry["output_image_main_tag"] += suffix_spark
version_entry["spark_version"] = spark_version
for gpu in gpu_options:
final_entry = version_entry.copy()
suffix = "-gpu" if gpu else ""
final_entry["base_image_tag"] += suffix
final_entry["output_image_main_tag"] += suffix
suffix_gpu = "-gpu" if gpu else ""
final_entry["base_image_tag"] += suffix_gpu
final_entry["output_image_main_tag"] += suffix_gpu
final_entry["output_image_tags"] = f'{final_entry["output_image_main_tag"]},{final_entry["output_image_main_tag"]}-{TODAY_DATE}'
matrix.append(final_entry)
return matrix
Expand Down

0 comments on commit e7affa8

Please sign in to comment.