Skip to content

Commit

Permalink
Merge pull request #259 from red-hat-data-services/tekton
Browse files Browse the repository at this point in the history
update cel expressions
  • Loading branch information
riprasad authored May 3, 2024
2 parents 2810252 + b567c15 commit fddcf2a
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 17 deletions.
6 changes: 4 additions & 2 deletions .tekton/kserve-agent-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-agent-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-agent
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-agent-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-agent-push.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-agent
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-controller-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-controller-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-controller
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-controller-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-controller-push.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-controller
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-router-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-router-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-router
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-router-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& ( !".tekton/**".pathChanged() || ".tekton/kserve-router-push.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-router
Expand Down
7 changes: 4 additions & 3 deletions .tekton/kserve-storage-initializer-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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
== "master" && ( "./python/***".pathChanged() || ".tekton/kserve-storage-initializer-pull-request.yaml".pathChanged()
|| "storage-initializer.Dockerfile".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& ( "python/**".pathChanged() || ".tekton/kserve-storage-initializer-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-storage-initializer
Expand Down
6 changes: 4 additions & 2 deletions .tekton/kserve-storage-initializer-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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
== "master"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& ( "python/**".pathChanged() || ".tekton/kserve-storage-initializer-push.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: kserve-storage-initializer
Expand Down

0 comments on commit fddcf2a

Please sign in to comment.