diff --git a/manifests/github-event-listener.yaml b/manifests/github-event-listener.yaml index 5f9041f..9085e0f 100644 --- a/manifests/github-event-listener.yaml +++ b/manifests/github-event-listener.yaml @@ -129,7 +129,15 @@ metadata: spec: serviceAccountName: service-acc triggers: - - bindings: + - name: github + interceptors: + - github: + secretRef: + secretName: github-secret + secretKey: secret + eventTypes: + - pull_request + bindings: - name: github-trigger-binding template: name: github-trigger-template diff --git a/manifests/test.yaml b/manifests/test.yaml index c394bd8..5324db8 100644 --- a/manifests/test.yaml +++ b/manifests/test.yaml @@ -1,21 +1,19 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: getting-started + +--- apiVersion: tekton.dev/v1alpha1 kind: EventListener metadata: - name: github-event-listener - #namespace: stage-tekton-pipeline + name: getting-started-listener + namespace: getting-started spec: - serviceAccountName: service-acc + serviceAccountName: tekton-triggers-admin triggers: - - name: github-trigger - interceptors: - - github: - secretRef: - secretName: webhook-secret - secretKey: secret - eventTypes: - - pull_request - - push - bindings: - name: github-trigger-binding + - bindings: + - name: getting-started-pipelinebinding template: - name: github-trigger-template \ No newline at end of file + name: getting-started-triggertemplate \ No newline at end of file