π¦ ClawHub
Clawhub Skill Deploy Pilot
by @mariusfit
Automates versioned Docker Compose and LXC deployments with health checks, blue-green updates, chat approvals, and automatic rollback for zero-downtime updates.
π‘ Examples
# Clone/download the skill
mkdir -p ~/.openclaw/workspace/skills/deploy-pilot
cd ~/.openclaw/workspace/skills/deploy-pilotCopy SKILL.md and scripts
cp SKILL.md deploy-pilot.py deploy-pilot.sh ./Make scripts executable
chmod +x deploy-pilot.sh deploy-pilot.pyInitialize config
./deploy-pilot.py initVerify installation
./deploy-pilot.py --help
Dependencies
Required:
docker (for Docker Compose stacks)curl (for HTTP health checks)jq (for JSON parsing)Optional (for Proxmox LXC):
pvesh (Proxmox command-line client)Optional (for chat approval):
Setup OpenClaw Integration
If you want approval workflows and chat notifications:
# Create approval config
mkdir -p ~/.openclaw/workspace/deploy-pilot
cat > ~/.openclaw/workspace/deploy-pilot/config.json << 'EOF'
{
"approval_channel": "whatsapp",
"approval_timeout_minutes": 30,
"notify_deployments": true,
"auto_rollback_on_health_fail": true
}
EOF
π Tips & Best Practices
Deployment stuck waiting for approval
# Check approval status
deploy-pilot status Force completion (skip approval, use with caution)
deploy-pilot force
Health check failing
# Verbose health check output
deploy-pilot health --verboseDisable health check for this deployment
deploy-pilot deploy --skip-health-check(Fix the issue, then re-deploy)
Rollback failed
# Check available versions
deploy-pilot history --limit 20Manual rollback to specific version
deploy-pilot rollback --version
Approval workflow not working
Check OpenClaw message tool:
# Test message delivery
openclaw message test "Test message"Verify config
cat ~/.openclaw/workspace/deploy-pilot/config.json
TERMINAL
clawhub install clawhub-skill-deploy-pilot