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

Commit8c549ef

Browse files
2 parentsc551b30 +3ff6390 commit8c549ef

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

‎_docs/codefresh-yaml/conditional-execution-of-steps.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Usually, you'll want to define a branch condition, be it of the type ```ignore``
1616
Here are some examples:
1717

1818
Only execute for the```master``` branch:
19-
`only-master-branch`
19+
20+
`only-master-branch.yml`
2021
{% highlight yaml %}
2122
build-step:
2223
description: Building the image.
@@ -31,7 +32,7 @@ build-step:
3132

3233
Only execute for branches whose name begins with```FB-``` prefix (feature branches):
3334

34-
`only-feature-branches`
35+
`only-feature-branches.yml`
3536
{% highlight yaml %}
3637
build-step:
3738
description: Building the image.
@@ -46,7 +47,7 @@ build-step:
4647

4748
Ignore the develop branch and master branch:
4849

49-
`ignore-master-and-develop-branch`
50+
`ignore-master-and-develop-branch.yml`
5051
{% highlight yaml %}
5152
build-step:
5253
description: Building the image.
@@ -72,7 +73,7 @@ This follows the standard [condition expression syntax]({{site.baseurl}}/docs/c
7273

7374
Here are some examples. Execute if the string```[skip ci]``` is not part of the main repository commit message AND if the branch is```master```
7475

75-
`all-conditions`
76+
`all-conditions.yml`
7677
{% highlight yaml %}
7778
build-step:
7879
description: Building the image.
@@ -88,7 +89,7 @@ build-step:
8889

8990
Execute if the string```[skip ci]``` is not part of the main repository commit message, OR if the branch is not a feature branch (i.e. name starts with FB-)
9091

91-
`any-condition`
92+
`any-condition.yml`
9293
{% highlight yaml %}
9394
build-step:
9495
description: Building the image.

‎_docs/codefresh-yaml/service-containers.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ steps:
3333
{% endraw %}
3434
{% endhighlight %}
3535

36-
This pipeline will run integration tests during the freestype step called`my_integration_tests` and at that point a Redis instance will be available at hostname`my-redis-db-host` and port 6479.
36+
This pipeline will run integration tests during the freestype step called`my_integration_tests` and at that point a Redis instance will be available at hostname`my-redis-db-host` and port 6479. Note how in this example, the service container is placed at the root of the pipeline (as opposed to inside a specific step). This ensures that the Redis instance is running for[the duration of the pipeline]({{site.baseurl}}/docs/codefresh-yaml/service-containers/#running-services-for-the-duration-of-the-pipeline).
3737

3838
##Launching multiple sidecar containers
3939

40-
Like Docker compose it is possible to launch multiple services this way. For example let's say that a Java application needs both Redis and MongoDB during integration tests. Here is the respective pipeline:
40+
Like Docker compose it is possible to launch multiple services this way. For example, let's say that a Java application needs both Redis and MongoDB during integration tests. Here is the respective pipeline:
4141

4242
`codefresh.yml`
4343
{% highlight yaml %}
@@ -107,7 +107,7 @@ caption="Using an existing composition"
107107
max-width="70%"
108108
%}
109109

110-
This makes very easy to reuse compositions that you have already defined for other reasons in the Codefresh UI.
110+
This makes very easy to reuse compositions that you have already defined for other reasons[in the Codefresh UI](https://codefresh.io/docs/docs/testing/create-composition/).
111111

112112

113113
##Running services for the duration of the pipeline
@@ -303,7 +303,7 @@ steps:
303303
{% endraw %}
304304
{% endhighlight %}
305305

306-
Here a Dockerfile for abackedn application is built on the spot and then is launched as sidecar container in the next step (with a hostname of`my_backend_app`). Notice that the`image` property in the sidecar service actually refers to a[Codefresh variable]({{site.baseurl}}/docs/codefresh-yaml/variables/) that holds the name of the build step.
306+
Here a Dockerfile for abackend application is built on the spot and then is launched as sidecar container in the next step (with a hostname of`my_backend_app`). Notice that the`image` property in the sidecar service actually refers to a[Codefresh variable]({{site.baseurl}}/docs/codefresh-yaml/variables/) that holds the name of the build step.
307307

308308
We then run a`curl` command against the sidecar container to verify the correct health of the application. This is a great way to run integration tests against multilple microservices.
309309

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp