In this chapter, we’ll reap the benefits of the work we’ve done in the previous two chapters. In chapters 6 and 7, you learned how to create infrastructure using code and how to manually deploy our microservices to that infrastructure.
In this chapter, you’ll learn how to put your deployments on automatic. Importantly, you’ll learn how to build an automated, continuous deployment pipeline for a microservice using GitHub Actions. This kind of automation will prove to be a vital part of your success with microservices. To keep things simple, we’ll focus on deploying a single microservice, but that will give us a recipe that we can apply to all of our microservices moving forward.
We’re in very advanced waters now and you might find this quite difficult. It’s not that it’s that difficult to build an automated workflow; I’m sure you’ll find the basics quite easy in the first and second examples of this chapter. But the third example relies on everything that you learned in chapters 3 and 6. If you aren’t yet confident using Docker and kubectl, that will make completing this chapter more difficult.