Add deploy preview skill
This commit is contained in:
37
skills/deploy/preview.md
Normal file
37
skills/deploy/preview.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Skill: Deploy Preview
|
||||
|
||||
## Description
|
||||
Deploys a preview environment for a feature branch.
|
||||
|
||||
## Input
|
||||
- **branch**: Branch name to deploy (required)
|
||||
- **project**: Project name (required)
|
||||
- **expire_hours**: Hours until auto-cleanup (optional, default: 24)
|
||||
|
||||
## Steps
|
||||
1. Validate branch exists in Gitea
|
||||
2. Create preview deployment in Dokploy
|
||||
3. Configure preview subdomain
|
||||
4. Run deployment
|
||||
5. Return preview URL
|
||||
|
||||
## Output Format
|
||||
```json
|
||||
{
|
||||
"status": "success|error",
|
||||
"preview": {
|
||||
"url": "https://preview-branch-project.mylder.io",
|
||||
"branch": "feature/my-feature",
|
||||
"expires_at": "2024-12-12T12:00:00Z",
|
||||
"deployment_id": "abc123"
|
||||
},
|
||||
"logs_url": "https://dokploy.mylder.io/deployments/abc123"
|
||||
}
|
||||
```
|
||||
|
||||
## Token Budget
|
||||
- Max input: 300 tokens
|
||||
- Max output: 300 tokens
|
||||
|
||||
## Model
|
||||
- Recommended: haiku (simple orchestration)
|
||||
Reference in New Issue
Block a user