initial commit
This commit is contained in:
10
dev/tekton/examples/hello-world/pipeline-run.yaml
Executable file
10
dev/tekton/examples/hello-world/pipeline-run.yaml
Executable file
@@ -0,0 +1,10 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: hello-goodbye-run
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: hello-goodbye
|
||||
params:
|
||||
- name: username
|
||||
value: "Allard"
|
||||
23
dev/tekton/examples/hello-world/pipeline.yaml
Executable file
23
dev/tekton/examples/hello-world/pipeline.yaml
Executable file
@@ -0,0 +1,23 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: hello-goodbye
|
||||
spec:
|
||||
params:
|
||||
- name: username
|
||||
type: string
|
||||
tasks:
|
||||
- name: hello
|
||||
taskRef:
|
||||
name: hello
|
||||
params:
|
||||
- name: username
|
||||
value: $(params.username)
|
||||
- name: goodbye
|
||||
runAfter:
|
||||
- hello
|
||||
taskRef:
|
||||
name: goodbye
|
||||
params:
|
||||
- name: username
|
||||
value: $(params.username)
|
||||
14
dev/tekton/examples/hello-world/task-goodbye.yaml
Executable file
14
dev/tekton/examples/hello-world/task-goodbye.yaml
Executable file
@@ -0,0 +1,14 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: goodbye
|
||||
spec:
|
||||
params:
|
||||
- name: username
|
||||
type: string
|
||||
steps:
|
||||
- name: goodbye
|
||||
image: ubuntu
|
||||
script: |
|
||||
#!/bin/bash
|
||||
echo "Goodbye $(params.username)!"
|
||||
14
dev/tekton/examples/hello-world/task-hello.yaml
Executable file
14
dev/tekton/examples/hello-world/task-hello.yaml
Executable file
@@ -0,0 +1,14 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: hello
|
||||
spec:
|
||||
params:
|
||||
- name: username
|
||||
type: string
|
||||
steps:
|
||||
- name: echo
|
||||
image: alpine
|
||||
script: |
|
||||
#!/bin/sh
|
||||
echo "Hello $(params.username)!"
|
||||
Reference in New Issue
Block a user