From 15dfbd17ba89d75702269f8355794106b6740228 Mon Sep 17 00:00:00 2001 From: James Murty Date: Tue, 16 Jul 2019 22:14:14 +1000 Subject: [PATCH] Add explicit `git clone` step to Codefresh builds Codefresh.io recently changed their service to organise around the new "project" metaphor instead of "repository". As part of this change they decoupled repositories from build pipelines. The upshot of all this is that newly-created Codefresh.io pipelines (or projects, I guess) must include an explicit step to clone the contents of a git repository, whereas previously this step was implicit. This updated codefresh.yml template file includes the new `git clone` step, copied exactly as defined and recommended by the service. See https://codefresh.io/docs/docs/codefresh-yaml/steps/git-clone/ --- project_template/codefresh.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project_template/codefresh.yml b/project_template/codefresh.yml index c696218..a020bce 100644 --- a/project_template/codefresh.yml +++ b/project_template/codefresh.yml @@ -1,6 +1,12 @@ version: '1.0' steps: + main_clone: + title: Cloning main repository... + type: git-clone + repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}' + revision: '${{CF_REVISION}}' + build_image: type: build title: Building Docker Image