diff --git a/.tekton/koku-frontend-pull-request.yaml b/.tekton/koku-frontend-pull-request.yaml index c9b0fa521..b6087be7e 100644 --- a/.tekton/koku-frontend-pull-request.yaml +++ b/.tekton/koku-frontend-pull-request.yaml @@ -7,7 +7,12 @@ 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" + || target_branch == "prod-stable" + ) creationTimestamp: null labels: appstudio.openshift.io/application: koku-frontend diff --git a/.tekton/koku-frontend-push.yaml b/.tekton/koku-frontend-push.yaml index 4e57d7435..2308856c9 100644 --- a/.tekton/koku-frontend-push.yaml +++ b/.tekton/koku-frontend-push.yaml @@ -6,7 +6,12 @@ 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 == "pull_request" + && ( + target_branch == "main" + || target_branch == "prod-stable" + ) creationTimestamp: null labels: appstudio.openshift.io/application: koku-frontend