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
- 9.1Why Actions — checks on every push
- 9.2Minimal workflow — test on pull request
- 9.3Jobs, steps, needs and permissions
- 9.4Caching and artifacts
- 9.5Build and push an image (GHCR sketch)
- 9.6Secrets and OIDC (awareness)
- 9.7Deploy sketch — SSH to one lab VM
- 9.8Branch protection and required checks
- 9.9Troubleshooting table
- 9.10Environment-specific configs in CI
- 9.11Lab — PR tests and main image push
Review and practice
- ★9.5b Local act / dry thinking before push
- ★9.7b Matrix and reuse (awareness only)
- ★9.7c Reading a failed Actions log like a pro
- ★9.9b Pinning action versions
The chapter recap is at the end of the last concept page.