Create the Tekton Pipeline
Understand how to create and run a Tekton Pipeline by defining build and deploy Tasks, using parameters and task results to connect steps. This lesson guides you through writing pipeline manifests and executing PipelineRuns via kubectl to automate CI/CD workflows on Kubernetes.
We'll cover the following...
The build-deploy Pipeline
A Pipeline in Tekton is a collection of Tasks that we define and arrange in a specific order of execution. We’ll create a Pipeline of the build and deploy Tasks we created earlier. We’ve already created a file named pipeline-build-deploy.yaml, as shown in the widget below.
The Pipeline definition defines some parameters it needs to be able to run. It consists of two Tasks: one to build an image and the other to deploy the service. Each Task must have a name and a taskRef that points to a Task available in the cluster. In the build-deploy Pipeline, we defined a Task named build, which ...