https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md
-
安装Tekton CLI(与Tekton交互的CLI)
curl -LO https://github.com/tektoncd/cli/releases/download/v0.7.1/tkn_0.7.1_Linux_x86_64.tar.gz
tar xvzf tkn_0.7.1_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
-
vim hello-word.yaml
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:name: echo-hello-world-task
spec:steps:- name: use-ubuntu-to-echo-a-hello-worldimage: ubuntucommand:- echoargs:- "Hi, a hello world from tekton!"
---
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:name: echo-hello-world-task-run
spec:taskRef:name: echo-hello-world-task