You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?
CI/CD commands
One page per command. What it does, when to use it, how risky it is.
Deploy and roll back (Cloudflare Wrangler)
npx wrangler deployUploads your Worker and sends all traffic to the new version.Risk: Carefulnpx wrangler versions uploadUploads a new version of your Worker without sending it any traffic.Risk: Safenpx wrangler versions deploySplits traffic between versions, like 5% new and 95% old.Risk: Carefulnpx wrangler rollbackSends all traffic back to an older version. Code only: data and bindings stay as they are.Risk: Carefulnpx wrangler previewUploads a preview of your Worker with its own link. Production is not touched.Risk: Safe
Check images and workflows
hadolintProofreads a Dockerfile and lists risky lines, like a latest base image.Risk: SafeactionlintProofreads GitHub Actions workflow files: typos, bad expressions, missing jobs.Risk: Safetrivy imageScans an image for known holes (CVEs) in its packages.Risk: Safegh attestation verifyChecks the signed provenance of an image: which repo and workflow built it.Risk: Safe