What are the best practices for Tekton implementation with multiple repositories with multiple deployments

539 views Asked by At

We have multiple repositories that have multiple deployments in K8S. Today, we have Tekton with the following setup:

  1. We have 3 different projects, that should be build the same and deploy (they are just different repo and different name)
  2. We defined 3 Tasks: Build Image, Deploy to S3, and Deploy to K8S cluster.
  3. We defined 1 Pipeline that accepts parameters from the PipelineRun.

Our problem is that we want to get Webhooks externally from GitHub and to run the appropriate Pipeline automatically without the need to run it with params. In addition, we want to be able to have the PipelineRun with default paramaters, so Users can invoke deployments automatically.

So - is our configuration and setup seems ok? Should we do something differently?

1

There are 1 answers

0
Jonas On

Our problem is that we want to get Webhooks externally from GitHub and to run the appropriate Pipeline automatically without the need to run it with params. In addition, we want to be able to have the PipelineRun with default paramaters, so Users can invoke deployments automatically.

This sounds ok. The GitHub webhook initiates PipelineRuns of your Pipeline through a Trigger. But your Pipeline can also be initiated by the users directly in the cluster, or by using the Tekton Dashboard.