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

Commit3d23644

Browse files
new variable CF_BRANCH_TAG_NORMALIZED_LOWER_CASE
1 parent443bef4 commit3d23644

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

‎_docs/codefresh-yaml/steps/build.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ steps:
139139
dockerfile:my-custom.Dockerfile
140140
tags:
141141
-latest
142-
-${{CF_BRANCH_TAG_NORMALIZED}}
142+
-${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}
143143
-v1.1
144144
{% endraw %}
145145
{% endhighlight %}
@@ -179,7 +179,7 @@ steps:
179179
image_name:my-company/my-go-image
180180
dockerfile:Dockerfile
181181
working_directory:./project2
182-
tag:${{CF_BRANCH_TAG_NORMALIZED}}
182+
tag:${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}
183183
{% endraw %}
184184
{% endhighlight %}
185185

‎_docs/codefresh-yaml/steps/push.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ step_name:
5555
|`stage`| Parent group of this step. See[using stages]({{site.baseurl}}/docs/codefresh-yaml/stages/) for more information.| Optional|
5656
|`candidate`| The identifier of the image to push to the remote Docker registry. It can be an explicit identifier of an image to push, or a variable that references a`Build` step.| Required|
5757
|`tag`| The tag under which to push the image. Use either this or`tags`.<br> The default is`latest`.| Default|
58-
| `tags` | Multiple tags under which to push the image. Use either this or `tag`. This is an array, so should be of the following style: <br> {::nomarkdown}<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">tags</span><span class="pi">:</span><br><span class="pi">-</span> <span class="s">tag1</span><br><span class="pi">-</span> <span class="s">tag2</span><br><span class="pi">-</span> <span class="s">{% raw %}${{CF_BRANCH_TAG_NORMALIZED}}{% endraw %}</span><br><span class="pi">-</span> <span class="s">tag4</span></code></pre></figure>{:/}or<br>{::nomarkdown}<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">tags</span><span class="pi">:</span> <span class="pi">[</span> <span class="s1">'</span><span class="s">tag1'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">tag2'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">{% raw %}${{CF_BRANCH_TAG_NORMALIZED}}{% endraw %}'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">tag4'</span> <span class="pi">]</span></code></pre></figure>{:/} | Default |
58+
| `tags` | Multiple tags under which to push the image. Use either this or `tag`. This is an array, so should be of the following style: <br> {::nomarkdown}<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">tags</span><span class="pi">:</span><br><span class="pi">-</span> <span class="s">tag1</span><br><span class="pi">-</span> <span class="s">tag2</span><br><span class="pi">-</span> <span class="s">{% raw %}${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}{% endraw %}</span><br><span class="pi">-</span> <span class="s">tag4</span></code></pre></figure>{:/}or<br>{::nomarkdown}<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">tags</span><span class="pi">:</span> <span class="pi">[</span> <span class="s1">'</span><span class="s">tag1'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">tag2'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">{% raw %}${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}{% endraw %}'</span><span class="pi">,</span> <span class="s1">'</span><span class="s">tag4'</span> <span class="pi">]</span></code></pre></figure>{:/} | Default |
5959
|`image_name`| The tagged image name that will be used The default value will be the same image name as of the candidate.| Default|
6060
|`registry`| The registry logical name of one of the inserted registries from the integration view. <br>The default value will be your default registry[if you have more than one]({{site.baseurl}}/docs/docker-registries/external-docker-registries/).| Default|
6161
|`fail_fast`| If a step fails, and the process is halted. The default value is`true`.| Default|
@@ -113,7 +113,7 @@ steps:
113113
type: push
114114
title: Pushing to a registry
115115
candidate: ${{MyAppDockerImage}}
116-
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
116+
tag: ${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}
117117
registry: myazureregistry
118118
image_name: my-user-name/a-different-image-name
119119
{% endraw %}

‎_docs/codefresh-yaml/variables.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ All system provided variables will also be automatically injected to any freesty
8686
| -------------------------------------------------| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
8787
| {% raw %}`${{CF_REPO_OWNER}}`{% endraw %}| Repository owner.|
8888
| {% raw %}`${{CF_REPO_NAME}}`{% endraw %}| Repository name.|
89-
| {% raw %}`${{CF_BRANCH}}`{% endraw %}| Branch name (or Tag depending on the payload json) of the Git repository of the main pipeline, at the time of execution. <br/>You can also use {% raw %}`${{CF_BRANCH_TAG_NORMALIZED}}`{% endraw %} to get the branch name normalized. It will be without any chars that are illegal in case the branch name were to be used as the Docker image tag name.|
89+
| {% raw %}`${{CF_BRANCH}}`{% endraw %}| Branch name (or Tag depending on the payload json) of the Git repository of the main pipeline, at the time of execution. <br/>You can also use {% raw %}`${{CF_BRANCH_TAG_NORMALIZED}}`{% endraw %} to get the branch name normalized. It will be without any chars that are illegal in case the branch name were to be used as the Docker image tag name.You can also use {% raw %}`${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}}`{% endraw %} to force lowercase.|
9090
| {% raw %}`${{CF_BASE_BRANCH}}`{% endraw %}| The base branch used during creation of Tag|
9191
| {% raw %}`${{CF_PULL_REQUEST_ACTION}}`{% endraw %}| The pull request action. Values are those defined by your Git provider such as[Github](https://developer.github.com/webhooks/),[Gitlab](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html),[Bitbucket](https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html) etc.|
9292
| {% raw %}`${{CF_PULL_REQUEST_TARGET}}`{% endraw %}| The pull request target branch|

‎_docs/whats-new/whats-new.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Recent Codefresh updates:
1313
- Helm release text message -[documentation]({{site.baseurl}}/docs/new-helm/helm-releases-management/#showing-an-upgrade-message)
1414
- Deploy to Heroku -[documentation]({{site.baseurl}}/docs/yaml-examples/examples/deploy-to-heroku/)
1515
- Scala: Hello World (updated) -[documentation]({{site.baseurl}}/docs/learn-by-example/scala/scala-hello-world/)
16+
- New variable`CF_BRANCH_TAG_NORMALIZED_LOWER_CASE` -[documentation]({{site.baseurl}}/docs/codefresh-yaml/variables/#system-provided-variables)
1617

1718
###March 2020
1819

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp