tekton-pipelines/pipelines/build-pipeline.yaml
2026-02-08 01:20:35 +01:00

23 lines
648 B
YAML

apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
name: cicd-listener
namespace: tekton-pipelines
spec:
serviceAccountName: tekton-triggers-sa # Needs RBAC to start PipelineRuns
triggers:
- name: github-push
interceptors:
- ref:
name: github
params:
- name: secretRef
value:
secretName: webhook-secret
secretKey: token
- name: eventTypes
value: ["push"]
bindings:
- ref: git-binding # Maps JSON payload to Params
template:
ref: build-template # Creates the PipelineRun