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

Commit4e6db66

Browse files
committed
Copy updates from Classic
skip trigger, K8s code samples
1 parent3dc5301 commit4e6db66

File tree

3 files changed

+33
-22
lines changed

3 files changed

+33
-22
lines changed

‎_docs/integrations/kubernetes.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ apiVersion: rbac.authorization.k8s.io/v1
387387
metadata:
388388
name: codefresh-role
389389
rules:
390-
- apiGroups:[“”]
391-
resources:[*]
392-
verbs:[list”, “watch”, “get]
390+
- apiGroups:[""]
391+
resources:["*"]
392+
verbs:["list", "watch", "get"]
393393
{% endraw %}
394394
{% endhighlight %}
395395

@@ -405,16 +405,16 @@ apiVersion: rbac.authorization.k8s.io/v1
405405
metadata:
406406
name: codefresh-role
407407
rules:
408-
- apiGroups:[*]
409-
resources:[*]
410-
verbs:[get”, “list”, “watch”, “create”, “update”, “patch”, “delete]
411-
408+
- apiGroups:["*"]
409+
resources:["*"]
410+
verbs:["get", "list", "watch", "create", "update", "patch", "delete"]
411+
--
412412
apiVersion: v1
413413
kind: ServiceAccount
414414
metadata:
415415
name: codefresh-user
416416
namespace: kube-system
417-
417+
--
418418
apiVersion: rbac.authorization.k8s.io/v1
419419
kind: ClusterRoleBinding
420420
metadata:
@@ -427,15 +427,15 @@ subjects:
427427
- kind: ServiceAccount
428428
name: codefresh-user
429429
namespace: kube-system
430-
430+
--
431431
apiVersion: v1
432432
kind: Secret
433433
type: kubernetes.io/service-account-token
434434
metadata:
435435
name: codefresh-user-token
436436
namespace: kube-system
437437
annotations:
438-
kubernetes.io/service-account.name:codefresh-user
438+
kubernetes.io/service-account.name:"codefresh-user"
439439

440440
{% endraw %}
441441
{% endhighlight %}
@@ -450,35 +450,35 @@ kubectl config use-context <my-cluster-name>
450450
{% endraw %}
451451
{% endhighlight %}
452452

453-
1. Create the Codefresh user/role:
454-
453+
{start="2"}
454+
1. Create the Codefresh user/role:
455455
`Apply Codefresh access rules`
456456
{% highlight shell %}
457457
{% raw %}
458458
kubectl apply -f codefresh-role-sa-bind.yml
459459
{% endraw %}
460460
{% endhighlight %}
461461

462-
1. Finally run the following commands, and copy-paste the results to the respective Codefresh field in the UI:
463-
462+
{start="2"}
463+
1. Finally run the following commands, and copy-paste the results to the respective Codefresh field in the UI:
464464
`Host IP`
465465
{% highlight shell %}
466466
{% raw %}
467-
export CURRENT_CONTEXT=$(kubectl config current-context) && export CURRENT_CLUSTER=$(kubectl config view -o go-template={{\$curr_context := \$CURRENT_CONTEXT\ }}{{range .contexts}}{{if eq .name\$curr_context}}{{.context.cluster}}{{end}}{{end}}) && echo $(kubectl config view -o go-template={{\$cluster_context := \$CURRENT_CLUSTER\}}{{range .clusters}}{{if eq .name\$cluster_context}}{{.cluster.server}}{{end}}{{end}})
467+
export CURRENT_CONTEXT=$(kubectl config current-context) && export CURRENT_CLUSTER=$(kubectl config view -o go-template="{{\$curr_context :=\"$CURRENT_CONTEXT\" }}{{range .contexts}}{{if eq .name\$curr_context}}{{.context.cluster}}{{end}}{{end}}") && echo $(kubectl config view -o go-template="{{\$cluster_context :=\"$CURRENT_CLUSTER\"}}{{range .clusters}}{{if eq .name\$cluster_context}}{{.cluster.server}}{{end}}{{end}}")
468468
{% endraw %}
469469
{% endhighlight %}
470470

471471
`Certificate`
472472
{% highlight shell %}
473473
{% raw %}
474-
echo $(kubectl get secret -n kube-system -o go-template={{index .dataca.crt }} codefresh-user-token)
474+
echo $(kubectl get secret -n kube-system -o go-template='{{index .data"ca.crt" }}' codefresh-user-token)
475475
{% endraw %}
476476
{% endhighlight %}
477477

478478
`Token`
479479
{% highlight shell %}
480480
{% raw %}
481-
echo $(kubectl get secret -n kube-system -o go-template={{index .datatoken }} codefresh-user-token)
481+
echo $(kubectl get secret -n kube-system -o go-template='{{index .data"token" }}' codefresh-user-token)
482482
{% endraw %}
483483
{% endhighlight %}
484484

‎_docs/pipelines/triggers.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ max-width="70%"
102102
Then click the toggle switch on each trigger that you want to enable/disable. You can later enable the same trigger again
103103
by clicking the same switch.
104104

105+
>For Git triggers, you can also skip triggering the pipeline without disabling the trigger by adding a predefined string to the commit message. See[Skip triggering pipeline on commit]({{site.baseurl}}/docs/pipelines/triggers/git-triggers/#skip-triggering-pipeline-on-commit).
106+
105107
##Related articles
106108
[Creating pipelines]({{site.baseurl}}/docs/pipelines/pipelines/)
107109
[Running pipelines locally]({{site.baseurl}}/docs/pipelines/running-pipelines-locally/)

‎_docs/pipelines/triggers/git-triggers.md‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,23 @@ The Git trigger is comprised of the following settings:
4848
**Trigger Name* - a freetext trigger name (required).
4949
**Description* - a freetext description (optional).
5050
**Repository* - you can select any repository even something different than the one that is used for the code checkout.
51-
**Commit Checkbox* - if enabled will trigger this pipeline for any commit.
52-
**PR Checkboxes* - various checkboxes for filtering the Pull request event.
51+
**Trigger by* - Options for commits and PRs.
52+
The*Push Commit* option, enabled by default, means that this pipeline will run for*any* commit as long as its source branch matches the naming scheme. This includes commits on pull requests.
53+
The*PR* options mean that this pipeline will run only on the respective events that happen on a Pull Request. You can select multiple options to further fine-tune the exact event. If you are interested in all events, select*Any Pull Request event*.
5354

54-
The commit checkbox (by default it is enabled) means that this pipeline will runfor*any* commit as long as its source branch matches the naming scheme. This includes commits on pull requests.
55+
>The individual Pull request checkboxes are available onlyforGitHub repositories.
5556
56-
The PR checkboxes mean that this pipeline will run only on the respective events that happen on a Pull Request. You can select multiple checkboxes to further fine-tune the exact event. If you are interested in all events, select the checkbox*Any Pull Request event*.
57+
##Skip triggering pipeline on commit
58+
The default behavior triggers the pipeline on a commit action.
59+
Override the default behavior by adding any one of the predefined strings anywhere in the commit message.
5760

58-
>The individual Pull request checkboxes are available only for GitHub repositories.
61+
>Remember to include the opening and closing parentheses when adding the strings.
62+
63+
*`[skip ci]`
64+
*`[ci skip]`
65+
*`[no ci]`
66+
*`[skip codefresh]`
67+
*`[codefresh skip]`
5968

6069
##Configure Filter Settings
6170

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp