šŸš— My '83 Datsun On the Side of the Information Superhighway šŸ›£ļø

Continuous Delivery Perspective Changers Part 1 ā€“ Releasing Any Version to Any Environment

Tags: #cicd #brainbender

I am in the process of reading Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation by David Farley and Jez Humble. Most of the principles in the book align with what Iā€™ve learned as a technical professional for the last 20 years, but occasionally Iā€™ll see something that bends my brain a bit. Hereā€™s an example of that from the first chapter:

The aim of the deployment pipeline is threefold. First, it makes every part of the process of building, deploying, testing, and releasing software visible to everybody involved, aiding collaboration. Second, it improves feedback so that problems are identified, and so resolved, as early in the process as possible. Finally, it enables teams to deploy and release any version of their software to any environment at will through a fully automated process.

The reason why this seems so strange to me is that Iā€™m used to the following workflow:

  1. Build out the mostly-static prod and non-prod environments ahead of time using IAC
    1. Example: A set of Ansible playbooks that build out a Stage and Prod environment
  2. Develop an application and automated build process that does things like run tests
    1. Example: A Django application that is built and tested using a Makefile
  3. Write a Pipeline script that is able to run your Makefile and deploy the resulting build to one of the static environments from step 1.
    1. Example: A Jenkins Pipeline that is running within a Jenkins server that was created before step 1

However, my interpretation of ā€œreleasing any version to any environment isā€ is that I can deploy any arbitrary version of my app to a completely new environment, run my tests, and then throw that environment away. Oh, and all of the code that does that should live within my appā€™s repo.

So I guess my questions at this point are...

  1. Whatā€™s a good ā€œstarterā€ framework for creating a new environment on-demand that can run my app?
  2. Am I making this too complex? Should I just use whatā€™s built into Gitlab or Github and replace a few days of work with 5 good lines of config?

Unfortunately I donā€™t think this topic is covered until Chapter 13, and Iā€™m on Chapter 2. Oh well, it good motivation to get back to work šŸ˜¼