mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-29 20:12:46 +00:00
multiple listeners. TODO create different pipelines for each listener
This commit is contained in:
48
Tekton/triggers/infra-trigger-template.yaml
Normal file
48
Tekton/triggers/infra-trigger-template.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: infra-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
|
||||
- name: sha
|
||||
description: used for github status updates
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1alpha1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
generateName: infra-pipeline-run-
|
||||
spec:
|
||||
serviceAccountName: service-acc
|
||||
pipelineRef:
|
||||
name: stage-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: sha
|
||||
value: $(params.sha)
|
||||
- name: git-repo-full-name
|
||||
value: $(params.gitrepofullname)
|
Reference in New Issue
Block a user