Skip to content

Commit

Permalink
Merge pull request confidential-containers#12 from spotlesstofu/cel
Browse files Browse the repository at this point in the history
tekton: update cel expressions to avoid build loops
  • Loading branch information
spotlesstofu authored Jul 16, 2024
2 parents b2329eb + 3a84bc0 commit b2cca9c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tekton/trustee-operator-bundle-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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" && "bundle*".pathChanged()
creationTimestamp: null
labels:
appstudio.openshift.io/application: trustee
Expand Down
2 changes: 1 addition & 1 deletion .tekton/trustee-operator-bundle-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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"
== "main" && "bundle*".pathChanged()
creationTimestamp: null
labels:
appstudio.openshift.io/application: trustee
Expand Down
2 changes: 1 addition & 1 deletion .tekton/trustee-operator-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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" && ! "bundle*".pathChanged()
creationTimestamp: null
labels:
appstudio.openshift.io/application: trustee
Expand Down
2 changes: 1 addition & 1 deletion .tekton/trustee-operator-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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"
== "main" && ! "bundle*".pathChanged()
creationTimestamp: null
labels:
appstudio.openshift.io/application: trustee
Expand Down

0 comments on commit b2cca9c

Please sign in to comment.