cloudlog/kubernetes/tekton/cloudlog-pr-pipeline-templa...

59 lines
1.8 KiB
YAML

---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerTemplate
metadata:
name: cloudlog-pr-pipeline-template
spec:
params:
- name: gitHubProject
description: Github project name
- name: gitRepositoryURL
description: Git repo url
- name: gitCommit
description: Git commit to build from
default: master
- name: short_sha
description: Short sha from git commit used to identify binaries
- name: statusURL
description: Tekton dashboard URL for the resource status
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: cloudlog-pr-pipeline-
spec:
serviceAccountName: ecc-tekton
pipelineRef:
name: cloudlog-pr-pipeline
resources:
- name: source
resourceSpec:
type: git
params:
- name: revision
value: $(params.gitCommit)
- name: url
value: $(params.gitRepositoryURL)
- name: cloudlog-image
resourceSpec:
type: image
params:
- name: url
value: electriccoinco/cloudlog
- name: cloudlog
resourceSpec:
type: cloudEvent
params:
- name: targetURI
value: http://cloudlog:8080/inbox
params:
- name: shortSha
value: $(params.short_sha)
- name: gitRepositoryURL
value: $(params.gitRepositoryURL)
- name: gitCommit
value: $(params.gitCommit)
- name: gitHubProject
value: $(params.gitHubProject)
- name: statusURL
value: $(params.statusURL)