14/05/2026
🚀 Your First Automation Pipeline with GitLab CI/CD
GitLab CI/CD မှာ အရေးအကြီးဆုံး file ကတော့
👉 .gitlab-ci.yml
ဒီ file ထဲမှာ Pipeline ဘယ်လို Run မလဲဆိုတာ သတ်မှတ်ရပါတယ်။
━━━━━━━━━━━━━━━
📌 Basic Structure
stages:
- build
- test
- deploy
ဒါက Pipeline Stage Order ပါ။
✅ Build
✅ Test
✅ Deploy
အစီအစဉ်အတိုင်း Run သွားပါတယ်။
━━━━━━━━━━━━━━━
📌 Simple Job Example
hello-job:
stage: build
script:
- echo "Hello GitLab CI!"
━━━━━━━━━━━━━━━
📌 Result
Pipeline Run လိုက်ရင် —
✅ Job Start
✅ Runner Execute
✅ Console Output
Output:
Hello GitLab CI! 🔥
━━━━━━━━━━━━━━━
📌 Important Keywords
🔹 stages → Pipeline Order
🔹 job name → Job Identifier
🔹 script → Runner Execute လုပ်မယ့် Commands
🔹 tags → Specific Runner ရွေးဖို့
🔹 image → Docker Image သတ်မှတ်ဖို့
━━━━━━━━━━━━━━━
📌 Real Example (Node.js)
image: node:20
stages:
- install
- build
install-deps:
stage: install
script:
- npm install
build-app:
stage: build
script:
- npm run build
━━━━━━━━━━━━━━━
📊 Pipeline Flow
gitlab-ci.yml
⬇️
⚙️ GitLab Pipeline
├── Install
├── Build
└── Deploy
⬇️
🖥️ Runner Execute
အခုဆိုရင် simple GitLab CI file လေးနဲ့ ရိုးရိုးရှင်းရှင်း pipeline တစ်ခုကိုတည်ဆောက်ကြည့်လို့ရပါပြီ 🚀