Issue Resolved
Issue #17 closed: Auto-deployment workflow integration
Feature Request: Auto-deployment Workflow Integration
The package should provide built-in support for automatic deployments via GitHub Actions or similar CI/CD tools.
Current State
Currently, to set up auto-deployments:
- Coolify provides a webhook URL for deployments
- Users must manually create GitHub Actions workflows
- Webhook URLs must be stored as secrets
- No standardized approach across projects
Proposed Solution
Consider adding automatic workflow generation as part of the deployment setup:
- Generate
.github/workflows/deploy.ymlduring initial setup - Automatically configure GitHub secrets via API (if permissions allow)
- Provide CLI commands for manual setup if automated setup fails
- Support multiple CI/CD providers (GitHub Actions, GitLab CI, etc.)
Security Considerations
- Webhook URLs should be treated as sensitive credentials
- Consider using short-lived tokens instead of static webhook URLs
- Document security best practices for deployment workflows
- Provide options for restricting deployments to specific branches/tags
Example Workflow
The generated workflow could look something like:
```yaml name: Deploy to Production
on: push: branches: [main] workflow_dispatch:
jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy to Coolify run: curl -X GET "${{ secrets.COOLIFY_DEPLOY_URL }}" ```
Additional Context
This would improve the DX significantly and reduce the setup friction for new deployments. The package could handle webhook management internally and expose a simple artisan command like:
```bash php artisan coolify:setup-ci ```