mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-30 04:22:49 +00:00
housekeeping
This commit is contained in:
36
manifests/Tekton/triggers/event-listener.yaml
Normal file
36
manifests/Tekton/triggers/event-listener.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
---
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: EventListener
|
||||
metadata:
|
||||
name: github-event-listener
|
||||
spec:
|
||||
serviceAccountName: service-acc
|
||||
triggers:
|
||||
- name: github
|
||||
# interceptors:
|
||||
# - github:
|
||||
# eventTypes:
|
||||
# - pull_request
|
||||
# - push
|
||||
bindings:
|
||||
- name: github-trigger-binding
|
||||
template:
|
||||
name: github-trigger-template
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: manual-service
|
||||
spec:
|
||||
ports:
|
||||
- name: http-listener
|
||||
port: 8080
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app.kubernetes.io/managed-by: EventListener
|
||||
app.kubernetes.io/part-of: Triggers
|
||||
eventlistener: github-event-listener
|
||||
type: LoadBalancer
|
18
manifests/Tekton/triggers/trigger-binding.yaml
Normal file
18
manifests/Tekton/triggers/trigger-binding.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: TriggerBinding
|
||||
metadata:
|
||||
name: github-trigger-binding
|
||||
#namespace: stage-tekton-pipeline
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
value: $(body.repository.default_branch)
|
||||
- name: gitrepositoryurl
|
||||
value: $(body.repository.clone_url)
|
||||
# - name: prurl
|
||||
# value: $(body.pull_request.html_url)
|
||||
# - name: repo
|
||||
# value: $(body.pull_request.base.repo.full_name)
|
||||
# - name: source
|
||||
# value: github
|
35
manifests/Tekton/triggers/trigger-template.yaml
Normal file
35
manifests/Tekton/triggers/trigger-template.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: TriggerTemplate
|
||||
metadata:
|
||||
name: github-trigger-template
|
||||
#namespace: stage-tekton-pipeline
|
||||
spec:
|
||||
params:
|
||||
- name: gitrevision
|
||||
description: The git revision
|
||||
default: master
|
||||
- name: gitrepositoryurl
|
||||
description: The git repository url
|
||||
resourcetemplates:
|
||||
- apiVersion: tekton.dev/v1alpha1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: application-pipeline-run
|
||||
#namespace: stage-tekton-pipeline
|
||||
spec:
|
||||
serviceAccountName: service-acc
|
||||
pipelineRef:
|
||||
name: application-pipeline #gebruik dit om de pipeline aan te passen naar andere versies, zolang ze zich in dezelfde #namespace bevinden kunnen we deze pipeline hergebruiken om deployments op de cluster uit te voeren. service-mesh agnostisch.
|
||||
workspaces:
|
||||
- name: workspace-master
|
||||
persistentVolumeClaim:
|
||||
claimName: workspace-pvc-master
|
||||
- name: workspace-experimental
|
||||
persistentVolumeClaim:
|
||||
claimName: workspace-pvc-experimental
|
||||
params:
|
||||
- name: git-url
|
||||
value: $(inputs.params.gitrepositoryurl)
|
||||
- name: branch
|
||||
value: $(inputs.params.gitrevision)
|
Reference in New Issue
Block a user