| apiVersion: triggers.tekton.dev/v1beta1 |
| kind: TriggerTemplate |
| metadata: |
| name: kogito-serverless-operator-trigger-template |
| namespace: sonataflow-operator-system |
| spec: |
| params: |
| - name: git-repo-url |
| description: The git repository url |
| - name: git-revision |
| description: The git revision |
| default: pipelines-1.9 |
| - name: git-repo-name |
| description: The name of the deployment to be created / patched |
| |
| resourcetemplates: |
| - apiVersion: tekton.dev/v1beta1 |
| kind: PipelineRun |
| metadata: |
| generateName: build-deploy-$(tt.params.git-repo-name)- |
| spec: |
| serviceAccountName: pipeline |
| pipelineRef: |
| name: build-and-deploy |
| params: |
| - name: deployment-name |
| value: $(tt.params.git-repo-name) |
| - name: git-url |
| value: $(tt.params.git-repo-url) |
| - name: git-revision |
| value: $(tt.params.git-revision) |
| - name: IMAGE |
| value: image-registry.openshift-image-registry.svc:5000/sonataflow-operator-system/$(tt.params.git-repo-name) |
| workspaces: |
| - name: shared-workspace |
| volumeClaimTemplate: |
| spec: |
| accessModes: |
| - ReadWriteOnce |
| resources: |
| requests: |
| storage: 500Mi |