Sammyjo20 / lasso

🐎 Lasso is a Laravel package created to make your deployments blazing fast.
MIT License
341 stars 16 forks source link

Suggestion: Fire webhooks per environment #67

Closed dejury closed 9 months ago

dejury commented 2 years ago

It would be nice to set publish and pull webhooks per lasso_env. For example when using envoyer, i would like to trigger another project when going to staging.

dejury commented 2 years ago

Maybe like this:

 /*
     * Lasso can also trigger Webhooks after its commands have been
     * successfully executed. You may specify URLs that Lasso will POST
     * to, for each of the commands.
     */
    'webhooks'    => [

        /*
         * Specify which webhooks should be triggered after a successful
         * "php artisan lasso:publish" command execution.
         */
        'publish' => [
            'staging' => [], //only if lass_env = staging
            'production' => [], // only if lasso_env = production
            'always' => [] // always execute
        ],

        /*
         * Specify which webhooks should be triggered after a successful
         * "php artisan lasso:pull" command execution.
         */
        'pull'    => [
            //
        ],

    ],
Sammyjo20 commented 2 years ago

Ooh I love this idea! Thanks for the suggestion, I will consider adding this over the next coming weeks

Sammyjo20 commented 9 months ago

Really appreciate this idea. I'm going to close this issue for now but will let you know if this is added in a future release.