ziorye / ddeployer
Deploy Laravel applications via Github or Gitlab webhooks
3.0.0
2022-04-19 04:27 UTC
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9
README
Deploy Laravel applications via Github or Gitlab webhooks
Installing
For Laravel 9.x composer require ziorye/ddeployer:^3.0 For Laravel 8.x composer require ziorye/ddeployer:^2.0 For Laravel 7.x || 6.x || 5.8.x composer require ziorye/ddeployer:^1.0
Usage
- Run the command below to publish the package config file
config/ddeployer.php
:
php artisan vendor:publish --provider="Ziorye\DDeployer\DDeployerServiceProvider"
- Open your
.env
and add theSECRET_TOKEN
to it:
SECRET_TOKEN=[you can use `Str::random()` to generate a random alpha-numeric string]
- Add new GitHub webhook manually by using the following values:
- Payload URL:
config('app.url') . '/ddeployer/deploy'
- Content Type: application/json
- Secret: the
SECRET_TOKEN
value your just set to .env - Which events? Just the push event is enough.
Upgrading
- Run the command below to upgrade the package
composer update ziorye/ddeployer
- Overwrite the existing package config file
config/ddeployer.php
:
php artisan vendor:publish --provider="Ziorye\DDeployer\DDeployerServiceProvider" --force
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT