This plugin makes it easy to notify Raygun of your deployments using a grunt task.
npm install maxbeatty/grunt-raygun-deployment --save-dev
Load the task in your Gruntfile:
grunt.loadNpmTasks('grunt-raygun-deployment')
RAYGUN_DEPLOY_KEY
should be set to your Raygun API Key from "Application Settings".
RAYGUN_DEPLOY_TOKEN
should be set to your External Auth Token from "My Settings".
RAYGUN_DEPLOY_KEY=fR0mApp RAYGUN_DEPLOY_TOKEN=uS3r grunt raygun-deployment
You could use something like dotenv in your Gruntfile to avoid specifying environment variables before calling grunt
.
- no yaml file declaring release details
- no declaring sensitive information in your Gruntfile
- convention of using latest git tag for
version
- convention of using latest git tag commit for
scmIdentifier
- not setting any other deployment fields
- Finding the latest git tag relies on the
--sort
flag which was added in git v2.0.0. If you are using a previous version of git, please open an issue for us to work it out.