मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)10k · #12033

deploy-agent

यह क्या करती है

यह स्किल Bindu एजेंट को लोकल, staging या production वातावरण में डिप्लॉय करने का मार्गदर्शन देती है, रास्ते में सुरक्षा जाँच के साथ। यह Bindu से एजेंट बनाने वाले और उन्हें जारी करने वाले डेवलपरों के लिए है।

कब इस्तेमाल करें

  • ✓जब आप Bindu एजेंट को लोकल, staging या production वातावरण में डिप्लॉय करने के लिए तैयार हों।
  • ✓जब आप चाहते हैं कि डिप्लॉयमेंट के बाद health checks चलें।
  • ✓जब आपको यह रिकॉर्ड चाहिए कि क्या डिप्लॉय हुआ और विफल होने पर वापस लौटने का तरीका।

Skill का लिंक

https://github.com/GetBindu/Bindu/blob/main/.agents/skills/deploy-agent/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/GetBindu/Bindu/blob/main/.agents/skills/deploy-agent/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे Bindu एजेंट को staging पर डिप्लॉय कीजिए, जाँच चलाइए, और बताइए कि वह स्वस्थ है या नहीं।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल पहले वातावरण सेटिंग जाँचती है और tests व डिप्लॉयमेंट से पहले की जाँच चलाती है। फिर वह एजेंट डिप्लॉय करती है, health checks चलाती है और डिप्लॉयमेंट रिकॉर्ड लिखती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Deploy Agent Skill

Overview

Deploy a Bindu agent to a target environment (local, staging, production) with comprehensive safety checks.

Inputs

  • Environment name (local, staging, production)
  • Agent configuration file path
  • Optional: deployment strategy (rolling, blue-green, canary)

Safety

  • Never deploy without passing tests
  • Verify environment variables before deployment
  • Run health checks after deployment
  • Generate deployment artifacts
  • Support rollback if deployment fails

Execution Contract

  1. Validate environment configuration
  2. Run pre-deployment checks
  3. Apply database migrations
  4. Deploy agent
  5. Verify deployment health
  6. Generate deployment record

Steps

1. Pre-Deployment Validation

# Check environment
ENVIRONMENT=$1
if [ -z "$ENVIRONMENT" ]; then
    echo "Error: Environment required (local, staging, production)"
    exit 1
fi

# Validate tests pass
echo "==> Running tests..."
uv run pytest || { echo "❌ Tests failed"; exit 1; }

# Validate pre-commit hooks
echo "==> Running pre-commit hooks..."
uv run pre-commit run --all-files || { echo "❌ Pre-commit hooks failed"; exit 1; }

# Check for uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
    echo "⚠️ Warning: Uncommitted changes detected"
    read -p "Continue anyway? (y/n) " -n 1 -r
    echo
    if [[ ! $REPLY =~ ^[Yy]$ ]]; then
        exit 1
    fi
fi

2. Environment Configuration

# Load environment-specific config
case $ENVIRONMENT in
    local)
        export STORAGE_BACKEND=memory
        export SCHEDULER_BACKEND=memory
        export PORT=3773
        ;;
    staging)
        export STORAGE_BACKEND=postgres
        export SCHEDULER_BACKEND=redis
        export DATABASE_URL=$STAGING_DATABASE_URL
        export REDIS_URL=$STAGING_REDIS_URL
        export PORT=3773
        ;;
    production)
        export STORAGE_BACKEND=postgres
        export SCHEDULER_BACKEND=redis
        export DATABASE_URL=$PROD_DATABASE_URL
        export REDIS_URL=$PROD_REDIS_URL
        export PORT=8080
        ;;
    *)
        echo "Error: Unknown environment $ENVIRONMENT"
        exit 1
        ;;
esac

# Verify required variables
required_vars=("STORAGE_BACKEND" "SCHEDULER_BACKEND")
for var in "${required_vars[@]}"; do
    if [ -z "${!var}" ]; then
        echo "Error: $var not set"
        exit 1
    fi
done

3. Database Migrations

# Run migrations for postgres backend
if [ "$STORAGE_BACKEND" = "postgres" ]; then
    echo "==> Running database migrations..."

    # Check current migration
    CURRENT=$(uv run alembic current 2>&1)
    echo "Current migration: $CURRENT"

    # Upgrade to head
    uv run alembic upgrade head || { echo "❌ Migration failed"; exit 1; }

    # Verify migration
    NEW_CURRENT=$(uv run alembic current 2>&1)
    echo "New migration: $NEW_CURRENT"
fi

4. Deploy Agent

# Local deployment
if [ "$ENVIRONMENT" = "local" ]; then
    echo "==> Starting local agent with tunnel..."
    uv run bindu serve --launch &
    AGENT_PID=$!
    echo "Agent PID: $AGENT_PID"
    sleep 5
fi

# Staging/Production deployment
if [ "$ENVIRONMENT" != "local" ]; then
    echo "==> Deploying to $ENVIRONMENT..."

    # Docker deployment
    if command -v docker &> /dev/null; then
        # Build image
        docker build -t bindu-agent:$ENVIRONMENT .

        # Stop old container
        docker stop bindu-agent-$ENVIRONMENT 2>/dev/null || true
        docker rm bindu-agent-$ENVIRONMENT 2>/dev/null || true

        # Start new container
        docker run -d \
            --name bindu-agent-$ENVIRONMENT \
            -p $PORT:8080 \
            -e DATABASE_URL="$DATABASE_URL" \
            -e REDIS_URL="$REDIS_URL" \
            -e STORAGE_BACKEND="$STORAGE_BACKEND" \
            -e SCHEDULER_BACKEND="$SCHEDULER_BACKEND" \
            bindu-agent:$ENVIRONMENT

        CONTAINER_ID=$(docker ps -qf "name=bindu-agent-$ENVIRONMENT")
        echo "Container ID: $CONTAINER_ID"
    else
        # Direct deployment
        uv run bindu serve &
        AGENT_PID=$!
        echo "Agent PID: $AGENT_PID"
    fi

    sleep 10
fi

5. Health Verification

# Determine health URL
if [ "$ENVIRONMENT" = "local" ]; then
    HEALTH_URL="http://localhost:3773/health"
else
    HEALTH_URL="http://localhost:$PORT/health"
fi

# Wait for agent to be ready
echo "==> Waiting for agent to be ready..."
MAX_RETRIES=30
RETRY_COUNT=0

while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
    
अक्सर पूछे जाने वाले सवाल

अगर tests विफल हों तो?

डिप्लॉयमेंट आगे नहीं बढ़ेगा। स्किल कहती है कि tests पास हुए बिना डिप्लॉयमेंट नहीं होना चाहिए।

कौन सी डिप्लॉयमेंट रणनीतियाँ बताई गई हैं?

यह rolling, blue-green और canary रणनीतियों का नाम लेती है, जिनमें आप चुन सकते हैं।

डिप्लॉयमेंट विफल हो तो क्या होता है?

स्किल कहती है कि जब डिप्लॉयमेंट सफल न हो, तो वह rollback का समर्थन करती है।

जानकारी

लेखक का मूल विवरण

Deploy Bindu agents to various environments with safety checks and verification

repo: GetBindu/Bindu

लोकप्रियता

GitHub स्टार
10k
रैंकिंग में स्थान
#12033
लाइसेंस
—
अपडेट की गई
6/9/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

मिलती-जुलती skills