Download the PHP package zaengle/envoyer-sentry-release-notifier without Composer
On this page you can find all versions of the php package zaengle/envoyer-sentry-release-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package envoyer-sentry-release-notifier
Envoyer Sentry Release Notifier
This tool helps with the process of collecting commits and sending them to Sentry as a new release while deploying from Laravel Envoyer.
Sentry can associate a series of git commits to a release by providing a starting hash and ending hash. With Envoyer it can be a bit tricky since the .git
repository isn't deployed with the site. By using the following combination of deployment hooks we are able to capture the two required hashes and gain the benefits of commit tracking in Sentry.
Installation
composer require zaengle/envoyer-sentry-release-notifier
Sentry Config
Inside your config/sentry.php
file add the getCommitHash()
helper provided by this package.
Envoyer Hooks
Once your project is set up with Sentry, add the following deployment hooks to Envoyer. You will need to run one deployment with only the Write Git Hash
hook enabled so that your initial .commit_hash
file will be present for future releases.
Activate New Release : AFTER
After Envoyer activates a new release we need to write the hash to a file so it's available for the next release, where it will be used as the commit_hash_previous
"
NOTE - This command will need to be run one time before activating any of the other hooks so the initial .commit_hash
file is created for subsequent steps.
Clone New Release : AFTER
Purge Old Releases : AFTER
Note: Sentry deploy names are limited to 64 characters. Depending on the length of your projects domain name and release path you might receive the following error.
If so, update the deployment script to send the {{time}}
instead of the {{release}}
.
License
The MIT License (MIT). Please see License File for more information.
Credits
All versions of envoyer-sentry-release-notifier with dependencies
illuminate/support Version 5.*|6.*|7.*|8.*|9.*|10.*
illuminate/console Version 5.*|6.*|7.*|8.*|9.*|10.*