Skip to content

Commit 4af7d14

Browse files
committed
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feature/CH-110
2 parents 69094cb + 55f6362 commit 4af7d14

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from os.path import join, relpath, exists, dirname
2+
from os.path import join, relpath, exists, dirname, basename
33
from cloudharness_model.models.git_dependency_config import GitDependencyConfig
44
import requests
55
import logging
@@ -175,7 +175,8 @@ def codefresh_steps_from_base_path(base_path, build_step, fixed_context=None, in
175175

176176
if app_config and app_config.dependencies and app_config.dependencies.git:
177177
for dep in app_config.dependencies.git:
178-
steps[CD_BUILD_STEP_DEPENDENCIES]['steps'][f"clone_{os.path.basename(dep.url)}_{os.path.basename(dockerfile_relative_to_root)}"] = clone_step_spec(dep, dockerfile_relative_to_root)
178+
step_name = f"clone_{basename(dep.url).replace('.', '_')}_{basename(dockerfile_relative_to_root).replace('.', '_')}"
179+
steps[CD_BUILD_STEP_DEPENDENCIES]['steps'][step_name] = clone_step_spec(dep, dockerfile_relative_to_root)
179180

180181
build = None
181182
if build_step in steps:

0 commit comments

Comments
 (0)