🚀

CI/CD

👨‍🍳 Chef

Deploy automation

CI/CD runs tests and deploys automatically when you push.


CI vs CD

PhaseWhat it does
CI (Continuous Integration)Automatic tests
CD (Continuous Deployment)Automatic deploy

GitHub Actions

# .github/workflows/deploy.yml
name: Deploy

on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: npm test

  deploy:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Deploy to VPS
        run: |
          ssh user@server "cd /app && git pull && docker compose up -d --build"

Secrets

env:
  API_KEY: ${{ secrets.API_KEY }}

Configure at: Settings → Secrets → Actions


Best practices

PracticeWhy
Tests before deployDon't break production
Branch protectionRequired review
Easy rollbackQuick recovery if fails

Practice

CI/CD with GitHub Actions

Want to go further?

This is one piece. GenAI Builder is the whole map.

Ten domains, from the terminal to energy and law, five levels earned with real evidence and an AI mentor. At your own pace, in English and Spanish.

See the courseLifetime access · 30-day guarantee

© 2026 luxIA.us - All rights reserved

Created by Alann Reyes