Project overview
In this chapter, we will build a CD pipeline. Approving and merging a PR triggers a postmerge build in Jenkins to compile and package the project, run integration tests, apply version tags to the Git repositories and the artifacts, and deliver the artifacts (a Docker image in our case) to Docker Hub. At the end of the build, Jenkins pushes the Git tag to the GitHub repository:
We will examine the GitHub build triggers for both AWS Jenkins, where GitHub has bidirectional communications, as well as firewalled Jenkins, where Jenkins can reach GitHub but GitHub cannot reach Jenkins:
In order to build this postmerge CD pipeline, we need to create and configure the following:
- Create build scripts and Dockerfiles that build, test, tag...