DevOps ka real power yahan se start hota hai. Agar Docker muscles hai, toh CI/CD pipelines uska nervous system hain.
Simple words me: code likho → test ho → build ho → deploy ho automatically.
CI/CD ne ye sab khatam kar diya.
CI ka matlab:
Agar test fail → deploy ruk jata hai.
Beginners ke liye pehle Delivery best hai.
Industry me Jenkins + GitHub Actions sabse common.
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building application'
}
}
stage('Test') {
steps {
echo 'Running tests'
}
}
stage('Deploy') {
steps {
echo 'Deploying application'
}
}
}
}
Ye file batati hai Jenkins ko: kya, kab aur kaise karna hai.
name: CI Pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build
run: echo "Build successful"
Code push hote hi pipeline start ho jata hai.
Manual kaam almost zero.
Without CI/CD → DevOps incomplete.
Jab containers + pipelines ho jaye, toh next step hota hai: container orchestration.
Next Part → Kubernetes Basics