Initial commit
This commit is contained in:
54
commands/deploy.md
Normal file
54
commands/deploy.md
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
description: Deploy application with comprehensive checks and validation
|
||||
argument-hint: [environment] [service-name]
|
||||
---
|
||||
|
||||
# Deployment Command
|
||||
|
||||
Deploy the application to the specified environment with comprehensive validation.
|
||||
|
||||
## Context
|
||||
- Environment: $1 (default: production)
|
||||
- Service: $2 (default: current service)
|
||||
- Current branch: !`git branch --show-current`
|
||||
- Recent commits: !`git log --oneline -5`
|
||||
- Build status: !`git status --porcelain`
|
||||
|
||||
## Deployment Process
|
||||
|
||||
1. **Pre-deployment Checks**
|
||||
- Validate environment configuration
|
||||
- Check service dependencies
|
||||
- Verify security requirements
|
||||
- Confirm deployment permissions
|
||||
|
||||
2. **Build and Test**
|
||||
- Run automated tests
|
||||
- Perform security scans
|
||||
- Validate configuration
|
||||
- Build deployment artifacts
|
||||
|
||||
3. **Deployment Execution**
|
||||
- Deploy to target environment
|
||||
- Verify service health
|
||||
- Run smoke tests
|
||||
- Monitor deployment metrics
|
||||
|
||||
4. **Post-deployment Validation**
|
||||
- Health check validation
|
||||
- Performance monitoring
|
||||
- Error log analysis
|
||||
- User acceptance testing
|
||||
|
||||
## Expected Outcome
|
||||
- Successful deployment to $1 environment
|
||||
- All health checks passing
|
||||
- Performance metrics within acceptable ranges
|
||||
- Zero critical errors in logs
|
||||
|
||||
## Rollback Plan
|
||||
If deployment fails:
|
||||
- Automatic rollback to previous version
|
||||
- Restore database state if needed
|
||||
- Notify stakeholders of issues
|
||||
- Document failure reasons for analysis
|
||||
Reference in New Issue
Block a user