Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building CI/CD Systems Using Tekton
  • Table Of Contents Toc
  • Feedback & Rating feedback
Building CI/CD Systems Using Tekton

Building CI/CD Systems Using Tekton

By : Joel Lord
5 (3)
close
close
Building CI/CD Systems Using Tekton

Building CI/CD Systems Using Tekton

5 (3)
By: Joel Lord

Overview of this book

Tekton is a powerful yet flexible Kubernetes-native open source framework for creating continuous integration and continuous delivery (CI/CD) systems. It enables you to build, test, and deploy across multiple cloud providers or on-premise systems. Building CI/CD Systems Using Tekton covers everything you need to know to start building your pipeline and automating application delivery in a cloud-native environment. Using a hands-on approach, you will learn about the basic building blocks, such as tasks, pipelines, and workspaces, which you can use to compose your CI/CD pipelines. As you progress, you will understand how to use these Tekton objects in conjunction with Tekton Triggers to automate the delivery of your application in a Kubernetes cluster. By the end of this book, you will have learned how to compose Tekton Pipelines and use them with Tekton Triggers to build powerful CI/CD systems.
Table of Contents (20 chapters)
close
close
1
Section 1: Introduction to CI/CD
4
Section 2: Tekton Building Blocks
12
Section 3: Tekton Triggers
15
Section 4: Putting It All Together

Adding task parameters

One of the goals that you should aim for when building your tasks is to make them as reusable as possible. A simple way to reuse a task in different contexts is to add parameters to them. You can then substitute the values of those parameters in the steps that compose your task.

Making the Hello task more reusable

For this first example, you can create a new file called hello-param.yaml in which you will copy the content of the existing hello.yaml file.

The goal is now to make this task reusable in different contexts. Instead of simply always outputting Hello World, we now want it to say hello to anyone, not just the world.

Parameters are added in the spec section of the task. This new params field will contain a list of parameters. For each parameter, you will add a name and a type. The type can be either string or array.

In this case, there will be a single parameter named who, and it will be of type string:

  params: 
 ...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY