2017 © Pedro Peláez
 

library gitlab-deploy

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

image

mahimahi/gitlab-deploy

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  • Tuesday, July 4, 2017
  • by olivM
  • Repository
  • 3 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 10 Versions
  • 4 % Grown

The README.md

Deployments Laravel projects using Git webhooks

git-deploy-laravel assists deployment by receiving a push event message from your repository's server and automatically pulling project code., (*1)

This should work out-of-the-box with Laravel 5.x using with webhooks from GitHub and GitLab servers., (*2)

This is an internal tool to help with our common workflow pattern but please feel free to borrow, change and improve., (*3)

Installation

Step 1

Add the following to your composer.json file then update your composer as normal:, (*4)

{
    "require" : {
        "orphans/git-deploy-laravel" : "dev-master"
    }
}

Or run:, (*5)

composer require orphans/git-deploy-laravel

Step 2

Add the following line to you providers in config/app.php:, (*6)

Orphans\GitDeploy\GitDeployServiceProvider::class,

Step 3

Add the /git-deploy route to CSRF exceptions so your repo's host can send messages to your project., (*7)

In file in app/Http/Middleware/VerifyCsrfToken.php add:, (*8)

protected $except = [
    'git-deploy',
];

Usage

Add a webhook for http://your.website.url/git-deploy to your project in GitHub/GitLab and this package will take care of the rest. The webhook should fire on push-events., (*9)

Your website will automatically receive POST messages from the repo manager and perform a Git pull., (*10)

Configuration

In most cases the package will find the correct Git repository and Git executable but we advise publishing our config anyway because it will let you enable extra security options and email notifications., (*11)

To add custom configuration run:, (*12)

php artisan vendor:publish --provider="Orphans\GitDeploy\GitDeployServiceProvider"

Then edit /config/gitdeploy.php, which has been well commented., (*13)

Future Plans

  • Branch management (i.e. only tigger on changes to active branch).
  • Email report on code conflicts that prevent a pull.

The Versions

04/07 2017

dev-master

9999999-dev

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.6

0.3.6.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.5

0.3.5.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.4

0.3.4.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.3

0.3.3.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.2

0.3.2.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

04/07 2017

v0.3.1

0.3.1.0

Helps automate the deployment of projects onto servers by utilising Gitlab web hooks

  Sources   Download

MIT

The Requires

 

laravel git deployment gitlab

22/04 2017

dev-develop

dev-develop

Helps automate the deployment of projects onto servers by utilising Git web hooks.

  Sources   Download

MIT

The Requires

 

22/04 2017

0.2.0

0.2.0.0

Helps automate the deployment of projects onto servers by utilising Git web hooks.

  Sources   Download

MIT

The Requires

 

20/09 2015

0.1.0

0.1.0.0

Helps automate the deployment of projects onto servers by utilising Git web hooks.

  Sources   Download

MIT

The Requires