GitHub ActionsDocker
CI/CD and automation
Test and ship on every push with pipelines, registries, secrets and safe rollouts.
- 10 lessons
- 3h 5m estimated time
- 0 hands-on labs
- 3 animated diagrams
- 10 quizzes
3 beginner, 7 intermediate. Start at the top or pick a chapter below.
0 of 10 done
Saved in this browser as you finish lessons.
More
Further lessons in this track.
01 Up next CI/CD pipeline stages explained, from push to production A CI/CD pipeline is an ordered set of automated stages (trigger, checkout, install, test, build, publish, deploy, verify) that turns a commit into running software and stops at the first failure. 12 min Beginner Diagram 02 Up next GitHub Actions workflow anatomy, explained line by line A GitHub Actions workflow is a YAML file in .github/workflows that names the events that start it, the jobs to run, and the steps in each job. 15 min Beginner 03 Up next Run tests on every push and pull request with GitHub Actions To run tests on every push and pull request, add a workflow with on push and pull_request triggers that checks out the code, installs with npm ci and runs npm test. 15 min Beginner 04 Up next Build and push a Docker image to GHCR with GitHub Actions GHCR is GitHub's container registry at ghcr.io, and a workflow can log in with GITHUB_TOKEN, build an image and push it with tags derived from the commit or version. 20 min Intermediate Diagram 05 Up next Deploy over SSH from GitHub Actions with a restricted key An SSH deploy lets a workflow log in to your server with a dedicated key and run one fixed deploy script, so the key can do that job and nothing else. 30 min Intermediate 06 Up next Secrets and variables in CI pipelines, GitHub Actions guide CI secrets are encrypted values (tokens, keys, passwords) stored in the CI system and injected into jobs at run time, while variables hold non-sensitive configuration in plain text. 15 min Intermediate 07 Up next Cache dependencies in GitHub Actions to speed up builds Caching in GitHub Actions saves files such as downloaded packages under a key, then restores them in later runs so the install step does less work. 15 min Intermediate 08 Up next Matrix builds and branch protection in GitHub Actions A matrix build runs one job definition across many combinations such as Node versions and operating systems, and branch protection makes chosen checks mandatory before a merge. 18 min Intermediate 09 Up next Version and tag releases with semver, git tags and gh release Releasing by tag means you pick a semantic version, create an annotated git tag such as v1.2.0, push it, and let a workflow build, tag and publish that exact commit. 20 min Intermediate 10 Up next Rollback and release strategy in a CI/CD pipeline A pipeline rollback redeploys a previous, known-good immutable image tag, triggered by a health check failure or by hand, and works only if database changes are backward compatible. 25 min Intermediate Diagram