File tree Expand file tree Collapse file tree 5 files changed +68
-11
lines changed
internal/pkg/show/config/plugins Expand file tree Collapse file tree 5 files changed +68
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Yaml Lint
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ main ]
6
+ paths :
7
+ - ' **.yaml'
8
+ - ' **.yml'
9
+
10
+ jobs :
11
+ yamlLint :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Remove All Strings In Square Brackets
16
+ run : |
17
+ # remove strings in "[[]]" in .yml or .yaml files, or yaml lint will fail
18
+ sed -i "s/\[\[.*\]\]//g" `grep "\[\[.*\]\]" -rl --include="*.yml" --include="*.yaml" .`
19
+ - name : Yaml Lint
20
+ uses : ibiqlik/action-yamllint@v3
21
+ with :
22
+ file_or_dir : .
23
+ config_file : .yamllint.yml
Original file line number Diff line number Diff line change
1
+ extends : default
2
+ rules :
3
+ brackets : disable # do not check brackets
4
+ comments :
5
+ require-starting-space : true
6
+ min-spaces-from-content : 1 # at leaset 1 space between comment and content
7
+ document-start : disable # whether the document must start with '---' is optional
8
+ indentation :
9
+ spaces : 2
10
+ # block sequences should not be indented
11
+ # e.g.:
12
+ # OK:
13
+ # key:
14
+ # - value1
15
+ # - value2
16
+ # NOT OK:
17
+ # key:
18
+ # - value1
19
+ # - value2
20
+ indent-sequences : false
21
+ line-length : disable
22
+ new-line-at-end-of-file : enable # must have a new line at the end of file
23
+ trailing-spaces : disable # do not check trailing spaces
24
+ truthy : disable # do not check truthy
25
+ ignore : |
26
+ *.tpl.yaml
27
+ *.tpl.yml
28
+ *tmpl.yaml
29
+ *tmpl.yml
30
+ *template.yml
31
+ *template.yaml
32
+ **/.github/**
33
+ **/githubactions/**
34
+ **/workflows/**
Original file line number Diff line number Diff line change 1
1
kind : Cluster
2
2
apiVersion : kind.x-k8s.io/v1alpha4
3
3
nodes :
4
- - role : control-plane
5
- extraPortMappings :
6
- - containerPort : 8080
7
- hostPort : 8080
8
- listenAddress : " 0.0.0.0"
9
- protocol : tcp
4
+ - role : control-plane
5
+ extraPortMappings :
6
+ - containerPort : 8080
7
+ hostPort : 8080
8
+ listenAddress : " 0.0.0.0"
9
+ protocol : tcp
Original file line number Diff line number Diff line change 8
8
# options for the plugin
9
9
options :
10
10
ci :
11
- configLocation : Jenkinsfile
11
+ configLocation : Jenkinsfile
12
12
# support jenkins/gitlab/github for now
13
13
type : jenkins
14
14
projectRepo :
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ tools:
23
23
tags : " YOUR_GITLAB_RUNNER_TAG"
24
24
# Package step will run on the specified branchs, default use "main"
25
25
allowedBranch :
26
- - " main"
27
- - " test"
28
- # Customized pipeline scripts. Leave it blank to use default value.
26
+ - " main"
27
+ - " test"
28
+ # Customized pipeline scripts. Leave it blank to use default value.
29
29
scriptCommand :
30
- - " YOUR_PACKAGE_SCRIPTS"
30
+ - " YOUR_PACKAGE_SCRIPTS"
31
31
build :
32
32
# Same as above
33
33
baseOption :
You can’t perform that action at this time.
0 commit comments