Skip to content

Commit

Permalink
Add Tekton trigger filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ileixe committed Mar 11, 2022
1 parent 1356d9a commit 5f57461
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tekton/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ spec:
interceptors:
- cel:
filter: >-
body.repository.name in ['tracing-chrometrace']
body.repository.name in ['tracing-chrometrace'] &&
body.pull_request.base.ref in ['main']
bindings:
- ref: tekton-ci-github-base
kind: ClusterTriggerBinding
Expand All @@ -30,7 +31,8 @@ spec:
interceptors:
- cel:
filter: >-
body.repository.name in ['tracing-chrometrace']
body.repository.name in ['tracing-chrometrace'] &&
body.ref in ['refs/heads/staging', 'refs/heads/trying']
bindings:
- ref: tekton-ci-github-base
kind: ClusterTriggerBinding
Expand Down Expand Up @@ -120,6 +122,8 @@ spec:
workspaces:
- name: source
workspace: source
runAfter:
- clone
---
apiVersion: tekton.dev/v1beta1
kind: Task
Expand Down

0 comments on commit 5f57461

Please sign in to comment.