janyksteenbeek/autoploi
Deploy a website to Ploi from GitHub Actions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| action | Which action to run (deploy | find-site-by-domain | delete-site) | no | deploy |
| ploi_token | Ploi API token | yes | — |
| server_id | Target Ploi server ID | yes | — |
| domain | Root domain for the site (e.g. example.com) | no | — |
| site_id | Site ID (required for delete-site) | no | — |
| branch | Git branch to deploy (falls back to trigger branch) | no | main |
| project_type | Optional Ploi project type (laravel, nodejs, etc.) | no | — |
| system_user | System user to own the site on the server | no | ploi |
| web_directory | Web directory (e.g. /public) | no | /public |
| project_root | Project root (e.g. /) | no | / |
| deploy_script | Deploy script to set for the site | no | — |
| environment | Lines to write into .env (KEY=VALUE per line) | no | — |
| daemons | YAML array of daemon specs. Each item can be a string command or an object with fields: command, path | no | — |
| create_database | Create a database and user, and set DATABASE_URL | no | false |
| database_engine | Database engine: mysql or postgres | no | mysql |
| database_name | Database name (defaults to domain sanitized) | no | — |
| database_user | Database user (defaults to domain sanitized) | no | — |
| database_host | Database host | no | 127.0.0.1 |
| database_port | Database port | no | 3306 |
| github_token | GitHub token for PR comments | no | — |
Outputs
| name | description |
|---|---|
| site_id | Site ID (set by deploy and find-site-by-domain) |
| url | Deployed site URL (set by deploy) |
| deleted | true when delete-site completed successfully |