Ravindra BagaleCourses & study guides

Chapter 9: GitHub Actions Hands-On

Chala mitrano, aaj aapan GitHub Actions — pratyek push = automatic automated inspection. Workflow YAML, events (push, pull_request), jobs, steps, runners, cache, artifacts, image push (GHCR/Docker Hub) secrets sobat, aani ek chota VM deploy sketch (SSH) — VPC/DNS parat nahi shikavnar. Ghabru naka: PR var tests, main var tagged image.

What you will learn in this chapter

  • Workflow YAML and trigger events
  • Jobs, steps and runners
  • Caching and artifacts
  • Build and push images with secrets
  • Sketch an SSH deploy step safely

Concepts in this chapter

  1. 9.1Why Actions — checks on every push
  2. 9.2Minimal workflow — test on pull request
  3. 9.3Jobs, steps, needs and permissions
  4. 9.4Caching and artifacts
  5. 9.5Build and push an image (GHCR sketch)
  6. 9.6Secrets and OIDC (awareness)
  7. 9.7Deploy sketch — SSH to one lab VM
  8. 9.8Branch protection and required checks
  9. 9.9Troubleshooting table
  10. 9.10Environment-specific configs in CI
  11. 9.11Lab — PR tests and main image push

Review and practice

  1. ★9.5b Local act / dry thinking before push
  2. ★9.7b Matrix and reuse (awareness only)
  3. ★9.7c Reading a failed Actions log like a pro
  4. ★9.9b Pinning action versions

The chapter recap is at the end of the last concept page.