Recall first: read each stage's one-line summary and try to remember its commands. Then open the stage to check yourself.
12 stages24 commands
false && echo deployedShow that && runs the next command only after success
true && echo deployedShow the success path through a shell command chain
Watch for Delivery means a release is ready; deployment means it has actually been released.
Open the lesson: What a pipeline is for →actionlintCheck GitHub Actions workflow files for common errors
npm run lint && npm testRun the repository checks in sequence
needs creates a dependency.Watch for A workflow file can parse while still containing an invalid action input or expression.
Open the lesson: GitHub Actions: your first real pipeline →docker ps --filter name=ci-postgres --format '{{.Names}}\t{{.Status}}'Verify the service container used by an integration test is running
actionlintValidate workflow syntax after changing workflow details
Watch for A cache is disposable acceleration, not a reliable place to keep build outputs.
Open the lesson: Workflow details: expressions, matrices, caches and artifacts →GITHUB_TOKEN only the permissions a job needs. Prefer OIDC over long-lived cloud keys.gh secret listList repository secrets without displaying their values
gh secret set PAYMENTS_API_KEY --env productionStore a secret scoped to the production environment
Watch for Never echo a secret or place its value in workflow YAML, arguments or logs.
Open the lesson: Secrets, environments and OIDC: deploy without leaking keys →npm run test:coverageRun the test suite with its coverage check
node --test --experimental-test-coverage --test-coverage-lines=80 'test/*.test.js'Run Node's test runner with an 80 percent line-coverage threshold
Watch for A required check with a different job name can leave a pull request blocked indefinitely.
Open the lesson: Testing in pipelines: lint, unit, integration and the gate →docker build -t shop-api:dev .Build the application image from the Dockerfile in the current folder
docker run -d --name shop -p 3300:3000 -e APP_VERSION=1.0.42-e3b0c44 shop-api:devStart the built image and provide its version at runtime
Watch for Do not rebuild separately for staging and production; promote the same tested artifact.
Open the lesson: Build and publish: images you can trust and find again →kubectl rollout status deployment/shop-api --timeout=120sWait for the Kubernetes deployment to complete or fail
kubectl rollout undo deployment/shop-apiRestore the previous Deployment revision
Watch for A deployment command returning success does not replace a health check against the new release.
Open the lesson: Deploy: static sites, servers over SSH, Kubernetes, and rollbacks →docker volume create jenkins_homeCreate persistent storage for a local Jenkins instance
docker run -d --name jenkins -p 8080:8080 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk21Start the Jenkins LTS container with persistent home storage
Watch for Don't expose the Jenkins controller publicly with default credentials or an unrestricted agent setup.
Open the lesson: Jenkins: the controller, agents, Jenkinsfile and shared libraries →circleci config validateValidate a CircleCI configuration file locally
git push gitlab mainPush the branch to the configured GitLab remote
Watch for A locally valid config still needs a real hosted run to prove credentials and runner access.
Open the lesson: Other CI tools: GitLab CI, CircleCI and Buildkite →kustomize build . | kubeconform -strict -summary -Render the manifests and validate their Kubernetes schemas
git log --oneline -2Review recent configuration commits
Watch for Don't edit a GitOps-managed object by hand and expect the change to persist; reconciliation can overwrite it.
Open the lesson: GitOps: Git says what runs, the cluster makes it so →npm audit --audit-level=high --omit=devReport production dependency vulnerabilities at high severity or above
docker run --rm --network host anchore/syft:v1.18.1 localhost:5050/shop-api:1.0.44 -qGenerate a software bill of materials for the image
Watch for Pinning an action to a tag is weaker than pinning it to a reviewed commit SHA.
Open the lesson: Pipeline security: your CI is a production system →git diff --name-only main...HEADList files changed on the current branch relative to main
./affected.shRun the lesson's affected-component check
Watch for Path filters that miss a shared dependency can skip a required build.
Open the lesson: Scaling pipelines: reuse, your own runners, speed and cost →