CI/CD
intermediate
~12 hours

GitHub Actions

Build CI/CD pipelines with GitHub Actions: workflows, secrets, matrix builds, and cloud deploys.

Chapter 1: GitHub Actions Basics

Workflows Overview

YAML workflows live in .github/workflows; jobs run on runners.

Note: Expand this section with your own examples and production notes.

Triggers & Events

push, pull_request, schedule, and workflow_dispatch.

Note: Expand this section with your own examples and production notes.

Actions Marketplace

Reuse community actions; pin versions with commit SHA for security.

Note: Expand this section with your own examples and production notes.

Chapter 2: Building CI/CD Pipelines

Testing Automation

Run unit and integration tests on every PR.

name: CI
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm test
Note: Expand this section with your own examples and production notes.

Building & Deployment

Build artifacts once; promote the same build across environments.

Note: Expand this section with your own examples and production notes.

Environment Management

GitHub Environments add approval gates and environment secrets.

Note: Expand this section with your own examples and production notes.

Chapter 3: Advanced Workflows

Matrix Builds

Test multiple Node or Python versions in parallel.

Note: Expand this section with your own examples and production notes.

Caching & Optimization

actions/cache speeds dependency installs.

Note: Expand this section with your own examples and production notes.

Secrets Management

Store tokens in repo or org secrets; never log secret values.

Note: Expand this section with your own examples and production notes.

Chapter 4: Integration Patterns

Deploy to AWS

Use OIDC federation instead of long-lived access keys.

Note: Expand this section with your own examples and production notes.

Deploy to Kubernetes

kubectl apply or Helm upgrade from CI with kubeconfig secrets.

Note: Expand this section with your own examples and production notes.

Notifications & Reporting

Slack or email on failure; publish test and coverage reports.

Note: Expand this section with your own examples and production notes.