Added tekton pipelines
This commit is contained in:
49
tekton/triggertemplates/deploy.yaml
Normal file
49
tekton/triggertemplates/deploy.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: triggers.tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: deploy-project
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
description: The git revision
|
||||
- name: gitrepositoryurl
|
||||
description: The git repository url
|
||||
- name: gitbranch
|
||||
description: The branch of the PR
|
||||
- name: gitref
|
||||
description: The ref of the PR
|
||||
- name: projectname
|
||||
description: The name of the git project
|
||||
- name: isprivate
|
||||
description: If the git project is set to private
|
||||
default: "true"
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
generateName: deploy-project-
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: deploy-project
|
||||
serviceAccountName: deploy-project
|
||||
params:
|
||||
- name: gitbranch
|
||||
value: $(params.gitbranch)
|
||||
- name: gitref
|
||||
value: $(params.gitref)
|
||||
- name: gitrevision
|
||||
value: $(params.gitrevision)
|
||||
- name: projectname
|
||||
value: $(params.projectname)
|
||||
- name: isprivate
|
||||
value: $(params.isprivate)
|
||||
resources:
|
||||
- name: git-source
|
||||
resourceSpec:
|
||||
type: git
|
||||
params:
|
||||
- name: revision
|
||||
value: $(params.gitrevision)
|
||||
- name: url
|
||||
value: $(params.gitrepositoryurl)
|
42
tekton/triggertemplates/pr.yaml
Normal file
42
tekton/triggertemplates/pr.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: triggers.tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: pr-project
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
description: The git revision
|
||||
- name: gitrepositoryurl
|
||||
description: The git repository url
|
||||
- name: gitbranch
|
||||
description: The branch of the PR
|
||||
- name: gitref
|
||||
description: The ref of the PR
|
||||
- name: projectname
|
||||
description: The name of the git project
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
generateName: pr-project-
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: pr-project
|
||||
serviceAccountName: pr-project
|
||||
params:
|
||||
- name: gitbranch
|
||||
value: $(params.gitbranch)
|
||||
- name: gitrevision
|
||||
value: $(params.gitrevision)
|
||||
- name: projectname
|
||||
value: $(params.projectname)
|
||||
resources:
|
||||
- name: git-source
|
||||
resourceSpec:
|
||||
type: git
|
||||
params:
|
||||
- name: revision
|
||||
value: $(params.gitrevision)
|
||||
- name: url
|
||||
value: $(params.gitrepositoryurl)
|
51
tekton/triggertemplates/tag.yaml
Normal file
51
tekton/triggertemplates/tag.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: triggers.tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: project-tag
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
description: The git revision
|
||||
- name: gitrepositoryurl
|
||||
description: The git repository url
|
||||
- name: gitbranch
|
||||
description: The branch of the PR
|
||||
- name: gitref
|
||||
description: The ref of the PR
|
||||
- name: projectname
|
||||
description: The name of the git project
|
||||
- name: isprivate
|
||||
description: If the git project is set to private
|
||||
default: "true"
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
generateName: project-tag-
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: project-tag
|
||||
serviceAccountName: project-tag
|
||||
params:
|
||||
- name: gitbranch
|
||||
value: $(params.gitbranch)
|
||||
- name: gitref
|
||||
value: $(params.gitref)
|
||||
- name: gitrevision
|
||||
value: $(params.gitrevision)
|
||||
- name: projectname
|
||||
value: $(params.projectname)
|
||||
- name: isprivate
|
||||
value: $(params.isprivate)
|
||||
- name: imagetag
|
||||
value: $(params.gitref)
|
||||
resources:
|
||||
- name: git-source
|
||||
resourceSpec:
|
||||
type: git
|
||||
params:
|
||||
- name: revision
|
||||
value: $(params.gitrevision)
|
||||
- name: url
|
||||
value: $(params.gitrepositoryurl)
|
Reference in New Issue
Block a user