Skip to content

Commit

Permalink
ci(STONEBLD-2225): Build in response to merge queue events
Browse files Browse the repository at this point in the history
This change will make it such that our PR pipeline builds in response
to merge queue events.

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue

Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean committed Mar 29, 2024
1 parent 7e2b2a1 commit f6e3d5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ kind: PipelineRun
metadata:
name: build-definitions-pull-request
annotations:
pipelinesascode.tekton.dev/on-event: "pull_request"
pipelinesascode.tekton.dev/on-target-branch: "main"
pipelinesascode.tekton.dev/on-cel-expression: (event == "pull_request" && target_branch == "main") || (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))
pipelinesascode.tekton.dev/task: "[task/git-clone/0.1/git-clone.yaml, .tekton/tasks/buildah.yaml, .tekton/tasks/yaml-lint.yaml, .tekton/tasks/e2e-test.yaml, task/sast-snyk-check/0.1/sast-snyk-check.yaml]"
pipelinesascode.tekton.dev/task-2: "yaml-lint"
pipelinesascode.tekton.dev/max-keep-runs: "5"
Expand Down

0 comments on commit f6e3d5e

Please sign in to comment.