Skip to content

Commit b1bb8ba

Browse files
ccroncavdemeester
authored andcommitted
fix(KONFLUX-3663): format Tekton PipelineRun files
Format PipelineRun files with yq for consistent indentation and format Signed-off-by: ccronca <[email protected]>
1 parent a505a34 commit b1bb8ba

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.tekton/git-init-pull-request.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ metadata:
77
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11-
== "main" && ( "image/git-init/***".pathChanged() || ".tekton/git-init-pull-request.yaml".pathChanged()
12-
)
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "image/git-init/***".pathChanged() || ".tekton/git-init-pull-request.yaml".pathChanged() )
1311
creationTimestamp: null
1412
labels:
1513
appstudio.openshift.io/application: tektoncd-git-clone
@@ -77,13 +75,11 @@ spec:
7775
name: output-image
7876
type: string
7977
- default: .
80-
description: Path to the source code of an application's component from where
81-
to build image.
78+
description: Path to the source code of an application's component from where to build image.
8279
name: path-context
8380
type: string
8481
- default: Dockerfile
85-
description: Path to the Dockerfile inside the context specified by parameter
86-
path-context
82+
description: Path to the Dockerfile inside the context specified by parameter path-context
8783
name: dockerfile
8884
type: string
8985
- default: "false"
@@ -107,8 +103,7 @@ spec:
107103
name: java
108104
type: string
109105
- default: ""
110-
description: Image tag expiration time, time values could be something like
111-
1h, 2d, 3w for hours, days, and weeks, respectively.
106+
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
112107
name: image-expires-after
113108
- default: "false"
114109
description: Build a source image.
@@ -269,7 +264,7 @@ spec:
269264
- name: IMAGE_URL
270265
value: $(tasks.build-container.results.IMAGE_URL)
271266
- name: IMAGE_DIGEST
272-
value: $(tasks.build-container.results.IMAGE_DIGEST)
267+
value: $(tasks.build-container.results.IMAGE_DIGEST)
273268
runAfter:
274269
- build-container
275270
taskRef:

.tekton/git-init-push.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ metadata:
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/max-keep-runs: "3"
9-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
10-
== "main"
9+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main"
1110
creationTimestamp: null
1211
labels:
1312
appstudio.openshift.io/application: tektoncd-git-clone
@@ -73,13 +72,11 @@ spec:
7372
name: output-image
7473
type: string
7574
- default: .
76-
description: Path to the source code of an application's component from where
77-
to build image.
75+
description: Path to the source code of an application's component from where to build image.
7876
name: path-context
7977
type: string
8078
- default: Dockerfile
81-
description: Path to the Dockerfile inside the context specified by parameter
82-
path-context
79+
description: Path to the Dockerfile inside the context specified by parameter path-context
8380
name: dockerfile
8481
type: string
8582
- default: "false"
@@ -103,8 +100,7 @@ spec:
103100
name: java
104101
type: string
105102
- default: ""
106-
description: Image tag expiration time, time values could be something like
107-
1h, 2d, 3w for hours, days, and weeks, respectively.
103+
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
108104
name: image-expires-after
109105
- default: "false"
110106
description: Build a source image.
@@ -265,7 +261,7 @@ spec:
265261
- name: IMAGE_URL
266262
value: $(tasks.build-container.results.IMAGE_URL)
267263
- name: IMAGE_DIGEST
268-
value: $(tasks.build-container.results.IMAGE_DIGEST)
264+
value: $(tasks.build-container.results.IMAGE_DIGEST)
269265
runAfter:
270266
- build-container
271267
taskRef:

0 commit comments

Comments
 (0)