liveBook · Manning

Deployment automation

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

The practice of releasing application software through automated, repeatable tooling rather than manual operations.

Deployment automation releases application changes through repeatable workflows instead of manual operations. It provides a delivery path from a code repository to customers, reducing deployment effort and risk while enabling faster feedback. section 8.6 section 8.11

A practical implementation uses GitHub Actions to run workflows triggered by repository activity. A YAML file configures the pipeline, while a shell script runs the deployment commands and can be tested locally before cloud execution. section 8.11

A deployment pipeline

A push or pull request triggers GitHub Actions. The workflow runs automated checks, stops when compilation or tests fail, and deploys the microservice only when those checks pass. Environment variables configure the script; GitHub secrets supply sensitive values, github.sha can identify the image version, and envsubst can fill deployment parameters. section 8.11 section 12.4.1

Reliable deployment automation supports microservice operations by:

  • Replacing tedious, error-prone manual releases with a repeatable delivery pipeline. section 8.6
  • Creating an audit trail that records what changed, why it changed, and who triggered deployment. section 8.6
  • Scaling delivery through fast deployment and automated testing, with failed checks acting as a production gate. section 12.4.1
  • Encouraging continued investment in reliable, fast automation before and during microservice conversion. section 12.6.4

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Builds from YAML workflows and shell scripts to testing gates, secrets, versioning, and parameterized deployment configuration.
Examples
Uses GitHub Actions workflows, YAML files, shell scripts, GitHub secrets, github.sha image versions, and envsubst configuration.
What it assumes
Assumes a code repository and microservice workflow, while introducing pipeline configuration and deployment scripting as practical building blocks.
What you can do after
Apply it via GitHub Actions to test, configure, version, and deploy microservices automatically.
How it connects
Connects continuous integration, continuous deployment, automated testing, GitHub Actions, shell scripting, environment variables, and microservices.

Also explained in

Compare how 2 books explain deployment automation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.