mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-12-12 19:46:11 +00:00
inputs > gewoon params is zo een rare change
This commit is contained in:
@@ -4,10 +4,16 @@ apiVersion: tekton.dev/v1alpha1
|
||||
kind: EventListener
|
||||
metadata:
|
||||
name: github-event-listener
|
||||
namespace: tekton-pipeline-1
|
||||
spec:
|
||||
serviceAccountName: service-acc
|
||||
triggers:
|
||||
- name: github
|
||||
interceptors:
|
||||
- github:
|
||||
eventTypes:
|
||||
- pull_request
|
||||
- push
|
||||
bindings:
|
||||
- name: github-trigger-binding
|
||||
template:
|
||||
@@ -17,6 +23,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: manual-service
|
||||
namespace: tekton-pipeline-1
|
||||
spec:
|
||||
ports:
|
||||
- name: http-listener
|
||||
|
||||
@@ -3,13 +3,12 @@ apiVersion: tekton.dev/v1alpha1
|
||||
kind: TriggerBinding
|
||||
metadata:
|
||||
name: github-trigger-binding
|
||||
namespace: tekton-pipeline-1
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
value: $(body.repository.default_branch)
|
||||
value: "$(body.head_commit.id)"
|
||||
- name: gitrepositoryurl
|
||||
value: $(body.repository.clone_url)
|
||||
value: "$(body.repository.clone_url)"
|
||||
- name: gitreponame
|
||||
value: $(body.repository.name)
|
||||
- name: pipelinename
|
||||
value: "pipeline for commit $(body.)"
|
||||
value: $(body.repository.name)
|
||||
@@ -3,6 +3,7 @@ apiVersion: tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: github-trigger-template
|
||||
namespace: tekton-pipeline-1
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
@@ -12,13 +13,11 @@ spec:
|
||||
description: The git repository url
|
||||
- name: gitreponame
|
||||
description: the name of the git repository
|
||||
- name: pipelinename
|
||||
description: name the pipelinerun will have
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1alpha1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: $(inputs.params.pipelinename)
|
||||
generateName: github-pipeline-run-
|
||||
spec:
|
||||
serviceAccountName: service-acc
|
||||
pipelineRef:
|
||||
@@ -29,8 +28,8 @@ spec:
|
||||
claimName: workspace
|
||||
params:
|
||||
- name: git-url
|
||||
value: $(inputs.params.gitrepositoryurl)
|
||||
value: $(params.gitrepositoryurl)
|
||||
- name: branch
|
||||
value: $(inputs.params.gitrevision)
|
||||
value: $(params.gitrevision)
|
||||
- name: git-repo-name
|
||||
value: $(inputs.params.gitreponame)
|
||||
value: $(params.gitreponame)
|
||||
Reference in New Issue
Block a user