CI/CD #181352
-
|
Question What is the best learning resource for CI/CD ? And How can I incorporate or cconnect it with the github actions....im completely new to this.. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Totally normal to be new to this!! Best resources to learn CI/CD
How CI/CD works with GitHub Actions (simple)
Basic flow You push code β GitHub Actions runs checks/tests β if they pass, it continues How to start
Start with CI only (testing/building). |
Beta Was this translation helpful? Give feedback.
-
Best Learning Resources for CI/CD and GitHub ActionsSince you're completely new to CI/CD, I'll break this down step-by-step and provide you with the best resources to learn. What is CI/CD?CI/CD stands for:
Think of it as: "Every time I push code, GitHub automatically tests it, builds it, and deploys it for me" Best Learning Resources1. GitHub's Official Documentation (Start Here!)Why start here? It's free, well-structured, and teaches you GitHub Actions specifically (which is what you'll use). 2. FreeCodeCamp YouTube Tutorial
3. GitHub Skills Interactive Courses
4. Fireship YouTube Channel
Your Learning Path (Step-by-Step)Step 1: Understand the Basics (Day 1-2)
Step 2: Create Your First Workflow (Day 3-4)Create a name: My First Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Say hello
run: echo "Hello, GitHub Actions!"Push this to your repo and watch it run in the "Actions" tab! Step 3: Build a Real CI/CD Pipeline (Day 5-7)For a Node.js project: name: Node.js CI/CD
on:
push:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build
run: npm run buildFor a Python project: name: Python CI/CD
on:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: pytestCommon Use Cases & Examples1. Deploy to GitHub Pagesname: Deploy to GitHub Pages
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public2. Deploy to Vercel/Netlifyname: Deploy to Vercel
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}3. Run Tests on Pull Requestsname: PR Tests
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: npm testKey Concepts to Understand
Pro Tipsβ
Start simple - just run a "Hello World" first Additional Resources
Next Steps
Good luck! Feel free to ask if you get stuck on specific parts. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Thank you so much for the ones who helped me regarding this. And I'm a freshman who's ready for open source contributions.Kindly Help me in getting involved in such contributions |
Beta Was this translation helpful? Give feedback.
Totally normal to be new to this!!
Hereβs a short but clear explanation.
Best resources to learn CI/CD
GitHub Docs β CI/CD & GitHub Actions β best place for beginners
Fireship: βCI/CD in 100 Secondsβ (YouTube) β quick big-picture view
FreeCodeCamp CI/CD videos β step-by-step with examples
How CI/CD works with GitHub Actions (simple)
CI/CD means automatically building, testing, and deploying your code
GitHub Actions runs workflows when something happens (like a push)
Workflows are defined using YAML files inside .github/workflows
Basic flow
You push code β GitHub Actions runs checks/tests β if they pass, it continues
How to start
Create .github/workflows
Add a file likeβ¦