CI/CD principles
To implement a CI/CD pipeline, it is important to know the different elements that will be required to build an efficient and safe pipeline. In order to understand the principles of CI/CD, the following diagram shows the different steps of a CI/CD workflow, which we already saw in Chapter 1, The DevOps Culture and Infrastructure as Code Practices:
Let's look in detail at each of these steps in order to list the artifacts of the CI/CD process.
CI
The CI phase checks the code archived by the team members. It must be executed on each commit that has been pushed to the remote repository.
The setting up of a Git-type source control version (SCV) is a necessary prerequisite that makes it possible to centralize the code of all the members of a team.
The team will have to decide on a code branch that will be used for CI. For example, we can use the master
branch, or the develop
branch as part...