bakerkretzmar/Laravel Deploy Preview
Deploy PR preview sites for Laravel apps.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Dec 15, 2024
- License
- MIT
Pinned Snippet
uses: bakerkretzmar/laravel-deploy-preview@f77ef3d9df78fc539f6f108254cd7baf99d08ecf # v2.7.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| forge-token | Laravel Forge API token. | yes | — |
| github-token | GitHub token to create an authenticated Octokit client. | no | ${{ github.token }} |
| servers | List of Forge servers to use for deploy previews. Each line must contain a domain name and a Forge server ID separated by a space. Note: currently only supports a single server. | yes | — |
| after-deploy | Shell script to append and run after the default Forge deploy script. E.g. `npm ci && npm run build`. | no | — |
| environment | Environment variables to add or update on the preview site. | no | — |
| aliases | Alias domains and subdomains to add to the preview site. Enter multiple aliases on separate lines. | no | — |
| isolated | Enable Forge site isolation. | no | false |
| username | Set a custom site isolation username. | no | — |
| php-version | PHP version to use for the preview site, e.g. `8.3`. | no | — |
| existing-certificate | Existing SSL certificate to use for the preview site. | no | — |
| existing-certificate-key | Existing SSL certificate private key to use for the preview site. | no | — |
| clone-certificate | Forge SSL certificate ID to clone to the preview site. | no | — |
| no-certificate | Skip the creation of a certificate and serve the preview site over HTTP instead of HTTPS. | no | false |
| deployment-webhooks | URLs to send webhooks to after Forge deployments. Enter multiple URLs on separate lines. | no | — |
| deployment-failure-emails | Email addresses to notify if the Forge deployment fails. Enter multiple emails on separate lines. | no | — |
Outputs
| name | description |
|---|---|
| site-url | The URL of the deployed preview site. |
| site-id | The Forge ID of the deployed preview site. |