Skip to content

Commit

Permalink
.tekton: limit when opc-*.yaml are triggered.
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Aug 19, 2024
1 parent 0d0e3be commit 48e7301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .tekton/opc-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main"
== "main" &&
("opc/***".pathChanged() ||
".tekton/opc-pull-request.yaml".pathChanged() ||
".tekton/opc-push.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: ecosystem-images
Expand Down
5 changes: 4 additions & 1 deletion .tekton/opc-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main"
== "main" &&
("opc/***".pathChanged() ||
".tekton/opc-pull-request.yaml".pathChanged() ||
".tekton/opc-push.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: ecosystem-images
Expand Down

0 comments on commit 48e7301

Please sign in to comment.