Simple Tekton Task Run pulling from GitHub and Deploying to an Image Registry
Tekton | Google | CI/CD | GitHub | Image Registry | Build |
Understanding Tekton alone is a little difficult to understanding coming in. Then you add how to set up Kubernetes secrets and authentication to a GitHub project on top of that. Well, it gets a little overwhelming. That is why I am writing this article to hopefully simplify the process by example.
What is a Task Run?
Well, a Task Run is an executed set of instructions that then tell the βTaskβ what to do. For instance, you use the Task Run to push parameter values to the Task.
What is a Task?
A Task is an actual flow that is being conducted. A Task can have multiple steps to it. You can think of a Task as a Stage in Jenkins or a Step in GitLab CI/CD.
Step 1. Setting up a GitHub Service Account
Tekton utilizes Kubernetes' secrets to communicate to Github. Currently, there are two main ways to communicate a project to Tekton.
- Basic-Auth β This process utilizes a username and password. However, GitHub no longer supports username and password. This is no issue as the Basic-Auth can be utilized to process a Serviceβ¦