840 B
840 B
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
- Validate branch exists in Gitea
- Create preview deployment in Dokploy
- Configure preview subdomain
- Run deployment
- Return preview URL
Output Format
{
"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)