From 55d30680cd22a40ecd52237ab8b0c742f556764c Mon Sep 17 00:00:00 2001 From: Liora Milbaum Date: Sun, 15 Dec 2024 07:17:02 +0200 Subject: [PATCH] Do not trigger push pipeline if only tekton files are updated --- .tekton/bootc-image-builder-push.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.tekton/bootc-image-builder-push.yaml b/.tekton/bootc-image-builder-push.yaml index a69fcdf8..ba090955 100644 --- a/.tekton/bootc-image-builder-push.yaml +++ b/.tekton/bootc-image-builder-push.yaml @@ -7,8 +7,7 @@ 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" + event == "push" && target_branch == "main" && files.all.exists(x,!x.startsWith(".tekton/")) creationTimestamp: null labels: appstudio.openshift.io/application: bootc-image-builder