บทเรียนที่ 1End-to-end และ smoke testing: ตำแหน่ง e2e runs (staging cluster), การจัดการ test data, การจัดการ flakinessค้นพบวิธีออกแบบ end-to-end และ smoke tests ที่มีประสิทธิภาพเพื่อตรวจสอบ workflow จริง เรียนรู้ตำแหน่งรัน การจัดการ test data ลด flakiness และรวมเข้ากับ promotion gates ระหว่างสภาพแวดล้อม
การกำหนด smoke เทียบ full e2e coverageการรัน e2e tests ใน staging environmentsการจัดการ test data และ seeded fixturesการตรวจจับและลด flaky test behaviorการใช้ e2e tests เป็น promotion gatesบทเรียนที่ 2กลยุทธ์การ deploy: rolling updates, blue/green, canary releases, immutable deploymentsตรวจสอบกลยุทธ์การ deploy สมัยใหม่และเมื่อใดใช้แต่ละอย่าง เปรียบเทียบ rolling, blue/green, canary และ immutable approaches และเรียนรู้การเชื่อมต่อลงใน pipelines พร้อม health checks และ automated rollbacks ที่เหมาะสม
Rolling update strategy และ health checksBlue/green deployments ด้วย traffic switchingCanary releases และ progressive deliveryImmutable infrastructure และ deploymentsการ automate rollbacks สำหรับ failed releasesบทเรียนที่ 3Rollback และ recovery plan: automated rollbacks, previous-image promotion, ข้อพิจารณา database migration rollbackเรียนรู้การออกแบบ automated rollback flows ที่ลด downtime และความเสี่ยงข้อมูล ส่วนนี้ครอบคลุม image promotion, database rollback patterns และการทดสอบและบันทึก recovery procedures สำหรับ incident response ที่คาดเดาได้
การกำหนด rollback objectives และ triggersการ implement automated deployment rollbacksPrevious-image promotion patternsDatabase migration rollback strategiesการทดสอบและ rehearsing recovery playbooksบทเรียนที่ 4Container build และ hardening: การเลือก base image, vulnerability scanning, image signing และ SBOM generationเรียนรู้การ build และ harden container images สำหรับ production ส่วนนี้ครอบคลุมการเลือก base image, multi-stage builds, vulnerability scanning, image signing และ SBOM generation เพื่อรองรับ secure supply chain practices
การเลือกและ pinning secure base imagesการออกแบบ minimal และ multi-stage DockerfilesAutomated container vulnerability scanningImage signing และ verification ใน CI/CDการสร้างและเก็บ SBOM artifactsบทเรียนที่ 5ขั้นตอน Build: compiling, packaging, reproducible builds, deterministic artifact namingเข้าใจขั้นตอน build เป็นรากฐานของการปล่อยเวอร์ชันที่น่าเชื่อถือ เรียนรู้การ compile, package และ version artifacts อย่าง reproducible บังคับ deterministic naming และ cache dependencies เพื่อให้ build เร็วและ traceable
การกำหนด deterministic build environmentsการ compile และ packaging application artifactsVersioning และ naming build outputsBuild caching และ dependency managementการเก็บ artifacts ใน registries หรือ repositoriesบทเรียนที่ 6Trigger และ gating rules: push, pull request, schedule, tag triggers; required status checks และ merge rulesเข้าใจการออกแบบ robust triggers และ gating rules ที่ควบคุมว่า pipelines รันเมื่อใดและอย่างไร กำหนด push, PR และ scheduled triggers รวมถึง status checks และ merge protections ที่บังคับ quality และ compliance
การกำหนด push และ pull request triggersการใช้ scheduled และ tag-based triggersRequired status checks สำหรับ mergingBranch protection และ code review rulesManual approvals และ change controlบทเรียนที่ 7กลยุทธ์การทดสอบอัตโนมัติ: unit, component, integration, contract tests; test isolation และ fixturesออกแบบ layered automated testing strategy ที่เหมาะกับ pipeline ส่วนนี้อธิบาย unit, component, integration และ contract tests รวมถึง isolation, fixtures และการสมดุลความเร็วกับ coverage สำหรับ reliable feedback
การจัดโครงสร้าง unit และ component test suitesการออกแบบ integration และ system testsConsumer-driven contract testing basicsTest isolation, fixtures และ test dataการสมดุล test depth กับ pipeline speedบทเรียนที่ 8Release observability hooks: deployment metadata, trace IDs, changelogs, deployment annotations ใน orchestration platformเรียนรู้การติด observability hooks กับแต่ละ release เพื่อให้ changes traceable ส่วนนี้ครอบคลุม deployment metadata, trace IDs, changelogs และ orchestration annotations ที่เชื่อม code, builds และ runtime behavior
การจับ build และ deployment metadataการ propagate trace และ correlation IDsการ automate changelog generation ใน CIการ annotate deployments ใน orchestratorsDashboards และ alerts สำหรับ new releasesบทเรียนที่ 9Static analysis และ dependency checks: linters, formatters, SAST tools, dependency vulnerability scanning (Snyk, Dependabot)สำรวจว่า static analysis, formatting และ dependency scanning เข้ากับ secure pipeline อย่างไร เรียนรู้การรวม linters, SAST และ vulnerability tools เช่น Snyk หรือ Dependabot เพื่อจับปัญหาแต่เนิ่นๆ และบังคับ coding standards
การเลือกและกำหนด language lintersการใช้ auto-formatters ใน CI pipelinesการรวม SAST tools เข้ากับ pull requestsการ automate dependency vulnerability scansการจัดการ allowlists และ suppressions