Tekton Concepts: Difference between revisions
Jump to navigation
Jump to search
(→Task) |
|||
Line 19: | Line 19: | ||
==TaskRun== | ==TaskRun== | ||
<syntaxhighlight lang='yaml'> | |||
apiVersion: tekton.dev/v1beta1 | |||
kind: TaskRun | |||
metadata: | |||
name: hello-task-run | |||
spec: | |||
taskRef: | |||
name: hello | |||
</syntaxhighlight> | |||
==Pipeline== | ==Pipeline== | ||
==PipelineRun== | ==PipelineRun== |
Revision as of 22:27, 27 April 2022
Internal
Overview
Tekton Domain Model
Task
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: hello
spec:
steps:
- name: echo
image: alpine
script: |
#!/bin/sh
echo "Hello World"
TaskRun
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: hello-task-run
spec:
taskRef:
name: hello