Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laraveleg/laravel-autodeploy

Deploy project after pushed commits.
https://github.com/laraveleg/laravel-autodeploy

autodeploy git gitlab komicho laravel

Last synced: about 2 months ago
JSON representation

Deploy project after pushed commits.

Awesome Lists containing this project

README

        

# LaravelEG Laravel AutoDeploy
Deploy project after pushed commits.

### Install via composer
```
$ composer require laraveleg/laravel-autodeploy
```

### Publish vendor
- Run `php artisan vendor:publish`
- Selection `LaravelEG\Laravel\AutoDeploy\ServiceProvider`

### Config file
Go to `config/laraveleg/autodeploy.php`
- You can specify the name of the branch you want to pull from:- `'branch_remote' => 'master'`

## Add webhook
You can add webhook to route file `like routes/api.php`
```php
Route::prefix("laraveleg")->group(function () {
LaravelEG\Laravel\AutoDeploy\WebHook::init();
});
```

## Integrations with git repository
Publishing projects from the repository.

### URL (webhook):-
You can use url `/api/laraveleg/deploy/`
> Do not use web routes

`LARAVELEG_AUTODEPLOY_TOKEN` It is the secret token in LARAVELEG_AUTODEPLOY_TOKEN value inside `.env` file

### Secret Token
Add a value you choose but you must add this value in a .env file
```env
LARAVELEG_AUTODEPLOY_TOKEN=
```

### Git bar
Can enbale show git bar you wint add new middleware in app/Http/Kernel.php file
```php
\LaravelEG\Laravel\AutoDeploy\App\Http\Middleware\LastCommitMiddleware::class
```
> This feature does not work in production mode