Tekton
About
Tekton is used in APL for the Builds self-service. When a Build is created, APL generates the Tekton Pipeline and Pipelinerun resources. There are 2 pipeline types:
-
Docker
for building images based on a Dockerfile -
Buildpacks
for building images using buildpacks
When Tekton is activated, APL will add 4 Tekton tasks to the team's namespace:
and use them in the Build pipelines.
When APL generates the manifest resources for the pipeline and the pipelinerun, the pipelinerun will automatically run the pipeline once. Use the following command to check if the status of the pipelinerun:
tkn pipelineruns logs <name-of-the-pipelinerun> -n team-<team name>
If the build is changed in APL, the pipelinerun will not be re-started. Use the following command to start the pipeline after a change:
tkn pipeline start <name-of-the-pipeline> --use-pipelinerun <name-of-the-pipelinerun> -n team-<team name>