Ravindra BagaleCourses & study guides

Chapter 16: Capstone — Ship It End-to-End

16.6 Deploy path A — VM + image (SSH or Ansible)

  1. Lab VM reachable by SSH (from the AWS course habit — stop when idle).
  2. Docker installed on the VM (link AWS/Docker guides; do not invent versions).
  3. Secrets for registry login live in GitHub Secrets or Ansible Vault — not in Git.
  4. docker pull your/badge-api:sha-…
  5. Stop old container; run new one with -p and env from a server-local file (not committed).
  6. curl http://127.0.0.1:<port>/health on the VM.
  7. Record the live tag in RUNBOOK.md.

What you see: one known image tag running; health green; previous tag named for rollback.