Skip to content

Commit

Permalink
Run on main and prod-stable branches
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Aug 27, 2024
1 parent 628a493 commit 9a688c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .tekton/koku-frontend-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion .tekton/koku-frontend-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a688c2

Please sign in to comment.