This commit is contained in:
2020-03-12 14:06:49 +01:00
parent ebc471ff87
commit dbf15e29cb
2 changed files with 22 additions and 16 deletions

View File

@@ -129,7 +129,15 @@ metadata:
spec: spec:
serviceAccountName: service-acc serviceAccountName: service-acc
triggers: triggers:
- bindings: - name: github
interceptors:
- github:
secretRef:
secretName: github-secret
secretKey: secret
eventTypes:
- pull_request
bindings:
- name: github-trigger-binding - name: github-trigger-binding
template: template:
name: github-trigger-template name: github-trigger-template

View File

@@ -1,21 +1,19 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: getting-started
---
apiVersion: tekton.dev/v1alpha1 apiVersion: tekton.dev/v1alpha1
kind: EventListener kind: EventListener
metadata: metadata:
name: github-event-listener name: getting-started-listener
#namespace: stage-tekton-pipeline namespace: getting-started
spec: spec:
serviceAccountName: service-acc serviceAccountName: tekton-triggers-admin
triggers: triggers:
- name: github-trigger - bindings:
interceptors: - name: getting-started-pipelinebinding
- github:
secretRef:
secretName: webhook-secret
secretKey: secret
eventTypes:
- pull_request
- push
bindings:
name: github-trigger-binding
template: template:
name: github-trigger-template name: getting-started-triggertemplate