Skip to content

Commit

Permalink
feat(tekton): test trigger #2242
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Dec 13, 2023
1 parent d94576b commit d9f0f38
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ namespace: devops
resources:
- ./release.yaml
- ./interceptors.yaml
- ./templates/hello.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/redhat-developer/vscode-tekton/main/scheme/triggers.tekton.dev/v1beta1_TriggerTemplate.json
apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerTemplate
metadata:
name: hello-template
spec:
params:
- name: username
default: "Kubernetes"
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: hello-goodbye-run-
spec:
pipelineRef:
name: hello-goodbye
params:
- name: username
value: $(tt.params.username)

0 comments on commit d9f0f38

Please sign in to comment.