Files
stage-infra/Tekton/triggers/github-trigger-template.yaml

44 lines
1.3 KiB
YAML

---
apiVersion: tekton.dev/v1alpha1
kind: TriggerTemplate
metadata:
name: github-trigger-template
namespace: tekton-pipeline-1
spec:
params:
- name: gitrevision
description: The git revision
default: master
- name: gitrepositoryurl
description: The git repository url
- name: gitreponame
description: the name of the git repository
- name: branch
description: the name of the branch pushed to
- name: gitrepofullname
description: used for github status updates
resourcetemplates:
- apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
generateName: application-pipeline-run-
spec:
serviceAccountName: service-acc
pipelineRef:
name: application-pipeline
Timeout: "2h30m00s"
workspaces:
- name: workspace
persistentVolumeClaim:
claimName: workspace
params:
- name: git-url
value: $(params.gitrepositoryurl)
- name: branch
value: $(params.branch)
- name: git-repo-name
value: $(params.gitreponame)
- name: revision
value: $(params.gitrevision)
- name: git-repo-full-name
value: $(params.gitrepofullname)