Skip to content

Commit

Permalink
Merge pull request #5287 from celebdor/CNTRLPLANE-10
Browse files Browse the repository at this point in the history
CNTRLPLANE-10: Konflux build CPO only when needed
  • Loading branch information
openshift-merge-bot[bot] authored Dec 17, 2024
2 parents ef8596d + 8e9bdda commit 68f7ab0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .tekton/control-plane-operator-main-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
== "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "main"
&& ( "control-plane-operator/***".pathChanged() || "support/***".pathChanged() || "/Containerfile.control-plane-operator".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: control-plane-operator
Expand Down
6 changes: 4 additions & 2 deletions .tekton/control-plane-operator-main-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
== "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "main"
&& ( "control-plane-operator/***".pathChanged() || "support/***".pathChanged() || "/Containerfile.control-plane-operator".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: control-plane-operator
Expand Down

0 comments on commit 68f7ab0

Please sign in to comment.