Thuta Learning
DevOps & Toolsbeginnerci-cdgithub-actionsdevopsautomationdeploymentpipeline

CI/CD with GitHub Actions

CI/CD ဆိုတာ ဘာလဲဆိုတဲ့ အခြေခံမှ workflow ဖွဲ့စည်းပုံ, trigger, caching, matrix build, artifact, secret၊ ပြီးလျှင် deployment environment နှင့် approval, deployment strategy, rollback, pipeline performance, flaky test, supply-chain security အထိ diagram များဖြင့် ရှင်းပြထားပြီး CI pipeline, Docker build-and-push, staging-to-production pipeline hands-on project များပါဝင်သော GitHub Actions CI/CD tutorial ၂၅ ခန်း။

25 သင်ခန်းစာများ · 750 မိနစ် · Learning Platform Editorial Team

လက်ထဲမှာ ဘာရှိရင် ရပြီ

  • GitHub repository တစ်ခု (public repo များအတွက် Actions minutes အခမဲ့ရရှိသည်)
  • Code editor (VS Code အကြံပြု) — workflow file များသည် YAML သာဖြစ်သည်
  • Container build-and-push project အတွက် Docker (ရွေးချယ်နိုင်)

မစခင် ဒီလောက်ပဲ သိထားပါ

  • Git အခြေခံ (branch, commit, pull request) ကို အသုံးပြုနိုင်ရမည် — ဒီ course က Git ကို ပြန်မသင်ပါ (ဒီ site ရဲ့ Git tutorial က ဖုံးလွှမ်းထားပြီးဖြစ်သည်)၊ push လုပ်ပြီးနောက် အလိုအလျောက် ဘာဆက်ဖြစ်သလဲဆိုတဲ့ နေရာကနေ စတင်သည်
  • GitHub account တစ်ခုနှင့် စမ်းသပ်နိုင်သော repository တစ်ခု — ဒီမှာပါတဲ့ အရာအားလုံး public repository အတွက် GitHub ရဲ့ free tier ပေါ်မှာ run နိုင်သည်
  • Command line ကို အခြေခံအားဖြင့် အသုံးပြုနိုင်ရမည် (pipeline တိုင်းသည် နောက်ဆုံးတွင် shell command များကို run သည်) — သို့သော် CI/CD (သို့) DevOps အတွေ့အကြုံ မလိုအပ်ပါ

ဒီသင်တန်းပြီးရင် ကိုယ်ဘာလုပ်တတ်မလဲ

  • CI, continuous delivery, continuous deployment တစ်ခုချင်းစီ ဘာကို ဆိုလိုသလဲ ရှင်းပြနိုင်ခြင်း — နောက်နှစ်ခုကို ရောထွေးခြင်းက team အတွင်း သဘောထားကွဲလွဲမှု ဘာကြောင့် ဖြစ်စေသလဲ အပါအဝင်
  • GitHub Actions workflow တစ်ခုကို ဖတ်နိုင်၊ ရေးနိုင်ခြင်း — trigger, job, step, runner, context နှင့် expression
  • Caching, matrix build, artifact, job output တို့ကို မှန်ကန်စွာ အသုံးပြုနိုင်ခြင်း — မှားယွင်းသော cache key သည် cache မရှိတာထက် ဘာကြောင့် ပိုဆိုးသလဲ အပါအဝင်
  • Secret နှင့် token permission များကို least privilege အဖြစ် ကန့်သတ်နိုင်ခြင်း၊ fork မှ pull request က secret များကို ဘာကြောင့် မဖတ်နိုင်သလဲ ရှင်းပြနိုင်ခြင်း
  • Environment, လူသား approval နှင့် rollback အစီအစဉ်ပါဝင်သော deployment path ဒီဇိုင်းဆွဲနိုင်ပြီး rolling/blue-green/canary ကြားမှ ရွေးချယ်နိုင်ခြင်း
  • Pipeline အစစ်များ ဆောက်နိုင်ခြင်း — CI pipeline အပြည့်အစုံ, registry သို့ Docker build-and-push, approval ဖြင့် gate ထားသော staging-to-production pipeline
CI/CD with GitHub Actions | Thuta Learning