CI/CD, GitOps & Delivery
Build caching
Order Dockerfile steps from least to most changed, so the dependency install stays cached while source edits rebuild only the steps that depend on them, and check the output for the first step that was rebuilt.
What you will be able to do
- Explain why one changed layer rebuilds every later layer.
- Decide the order of Dockerfile steps for a build that changes often.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in CI/CD, GitOps & Delivery
- Pipeline DAGsBeginner · 4 min
Model a pipeline as a graph of jobs with needs, so independent jobs run in parallel and a failed test stops the deploy jobs that depend on it.
- Artifact provenanceIntermediate · 4 min
Read a provenance record as a claim about how an artifact was built, and check its digest against the file before trusting it for a deploy or an audit.
- Secret maskingIntermediate · 4 min
Keep secrets out of logs, understand that masking matches only the exact stored value, and rotate any secret that may have appeared in printed output, since masking…
- OIDC workload credentialsIntermediate · 4 min
Use OIDC to exchange a short-lived identity token for cloud access, and narrow the trust rule to one repository and branch so no other workflow can use it.
- Branch protectionIntermediate · 4 min
Protect the branch that deploys with platform rules for pull requests, reviews and checks, so an urgent push cannot skip the controls the team agreed, and confirm the…
- Required checksIntermediate · 4 min
Name each required check exactly as the workflow reports it, and check the pull request's check list, so a rename or path filter does not block merges forever.