Skip to content

Commit

Permalink
Fix codefresh script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Apr 21, 2020
1 parent 2b948b5 commit d23b2b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
18 changes: 11 additions & 7 deletions blueprint/deployment-configuration/codefresh-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ steps:
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_BRANCH}}'
git: github
secondary_clone:
title: Cloning cloud-harness repository...
type: git-clone
stage: prepare
repo: 'https://github.com/MetaCell/cloud-harness.git'
revision: '${{CLOUDHARNESS_BRANCH}}'
git: github
post_main_clone:
title: Post main clone
type: parallel
stage: build
steps:
- title: Cloning cloud-harness repository...
type: git-clone
stage: prepare
repo: 'https://github.com/MetaCell/cloud-harness.git'
revision: '${{CLOUDHARNESS_BRANCH}}'
git: github
build_base_images:
title: Build base images
type: parallel
Expand Down
2 changes: 1 addition & 1 deletion utilities/cloudharness_utilities/codefresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def codefresh_build_step_from_base_path(base_path, build_step, root_context=None
codefresh_build_step_from_base_path(os.path.join(CLOUD_HARNESS_PATH, APPS_PATH), BUILD_STEP_PARALLEL)

codefresh['steps'] = {k: step for k, step in codefresh['steps'].items() if
'type' not in step or step['type'] != 'parallel' or step['steps']}
'type' not in step or step['type'] != 'parallel' or (step['steps'] if 'steps' in step else [])}

codefresh_abs_path = os.path.join(deployment_root_path, DEPLOYMENT_PATH, codefresh_path)
codefresh_dir = os.path.dirname(codefresh_abs_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ steps:
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_BRANCH}}'
git: github
post_main_clone:
title: Post main clone
type: parallel
stage: prepare
build_base_images:
title: Build base images
type: parallel
Expand Down

0 comments on commit d23b2b8

Please sign in to comment.