Skip to content

Commit

Permalink
Do not trigger push pipeline if only tekton files are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed Dec 15, 2024
1 parent 93524e3 commit 55d3068
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .tekton/bootc-image-builder-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55d3068

Please sign in to comment.