From a9d2d1dd68fd078a3c92c8f6c44043f4296a24bb Mon Sep 17 00:00:00 2001 From: Vladimir Belousov Date: Mon, 16 Oct 2023 18:57:19 +0300 Subject: [PATCH] chore: exclude dashboard and deploy folders from pipeline Signed-off-by: Vladimir Belousov --- .tekton/exhort-pull-request.yaml | 3 ++- .tekton/exhort-push.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.tekton/exhort-pull-request.yaml b/.tekton/exhort-pull-request.yaml index 59041afe..050869a0 100644 --- a/.tekton/exhort-pull-request.yaml +++ b/.tekton/exhort-pull-request.yaml @@ -8,7 +8,8 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-event: '[pull_request]' - pipelinesascode.tekton.dev/on-target-branch: '[stable]' + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "stable" && !("dashboard/*".pathChanged() || "deploy/*".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: exhort-alpha diff --git a/.tekton/exhort-push.yaml b/.tekton/exhort-push.yaml index 267fde96..90ffc775 100644 --- a/.tekton/exhort-push.yaml +++ b/.tekton/exhort-push.yaml @@ -7,7 +7,8 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-event: '[push]' - pipelinesascode.tekton.dev/on-target-branch: '[stable]' + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" && target_branch == "stable" && !("dashboard/*".pathChanged() || "deploy/*".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: exhort-alpha