# Tekton TriggerBinding for Bakery-IA CI/CD
# This binding extracts parameters from incoming webhook payloads

apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerBinding
metadata:
  name: bakery-ia-trigger-binding
  namespace: {{ .Release.Namespace }}
  labels:
    app.kubernetes.io/name: {{ .Values.labels.app.name }}
    app.kubernetes.io/component: triggers
spec:
  params:
    - name: git-repo-url
      value: $(body.repository.clone_url)
    - name: git-revision
      value: $(body.after)
    - name: git-branch
      value: $(body.ref)
    - name: git-repo-name
      value: $(body.repository.name)
    - name: git-repo-full-name
      value: $(body.repository.full_name)