mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-29 12:02:48 +00:00
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
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) |