Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb65655c

Browse files
Cloning git repos with the Codefresh runner
1 parentd8c54a2 commitb65655c

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

‎_docs/codefresh-yaml/steps/git-clone.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,33 @@ steps:
178178
{% endraw %}
179179
{% endhighlight %}
180180

181+
##Checkout code using the Codefresh Runner
182+
183+
If you are using the[Hybrid version]({{site.baseurl}}/docs/enterprise/installation-security/#hybrid-installation) of Codefresh and a have a[Codefresh runner]({{site.baseurl}}/docs/enterprise/codefresh-runner/) installed, you need to use
184+
the fully qualified path of the git repository:
185+
186+
`codefresh.yml`
187+
{% highlight yaml %}
188+
{% raw %}
189+
version: '1.0'
190+
steps:
191+
main_clone:
192+
title: 'Cloning main repository...'
193+
type: git-clone
194+
repo:https://github-internal.example.com/my-username/my-app
195+
revision: '${{CF_REVISION}}'
196+
git: my-internal-git-provider
197+
PrintFileList:
198+
title: 'Listing files'
199+
image: alpine:latest
200+
commands:
201+
- 'ls -l'
202+
{% endraw %}
203+
{% endhighlight %}
204+
205+
More details can be found in the[private Git instructions page]({{site.baseurl}}/docs/enterprise/behind-the-firewall/#checking-out-code-from-a-private-git-repository).
206+
207+
181208
##Checking multiple git repositories
182209

183210
It is very easy to checkout additional repositories in a single pipeline by adding more`git-clone` steps.

‎_docs/enterprise/behind-the-firewall.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ steps:
110110
type: git-clone
111111
description: Step description
112112
repo:https://github-internal.example.com/my-username/my-app
113-
git: my-internal-git-repo
113+
git: my-internal-git-provider
114114
BuildingDockerImage:
115115
title: Building Docker Image
116116
type: build

‎_docs/yaml-examples/examples/git-checkout.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,32 @@ max-width="50%"
104104

105105
This is the recommended way of creating re-usable pipelines in Codefresh.
106106

107+
##Cloning a repository using the Codefresh runner
108+
109+
If you are using the[Hybrid version]({{site.baseurl}}/docs/enterprise/installation-security/#hybrid-installation) of Codefresh and a have a[Codefresh runner]({{site.baseurl}}/docs/enterprise/codefresh-runner/) installed, you need to use
110+
the fully qualified path of the git repository:
111+
112+
`codefresh.yml`
113+
{% highlight yaml %}
114+
{% raw %}
115+
version: '1.0'
116+
steps:
117+
main_clone:
118+
title: 'Cloning main repository...'
119+
type: git-clone
120+
repo:https://github-internal.example.com/my-username/my-app
121+
revision: '${{CF_REVISION}}'
122+
git: my-internal-git-provider
123+
PrintFileList:
124+
title: 'Listing files'
125+
image: alpine:latest
126+
commands:
127+
- 'ls -l'
128+
{% endraw %}
129+
{% endhighlight %}
130+
131+
More details can be found in the[private Git instructions page]({{site.baseurl}}/docs/enterprise/behind-the-firewall/#checking-out-code-from-a-private-git-repository).
132+
107133

108134
##Working inside the cloned directory
109135

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp