This plugin adds a /deploy
command to Slack which creates Samson deployments.
To activate:
- Go over to Slack and create a new app. Many of the fields are completely up to you, but these are important:
- Add
https://your.samson.tld/slack_app/oauth
as a redirect URI. - Enable interactive messages, and set the URI to
https://your.samson.tld/slack_app/interact
. - Add a
/deploy
slash-command, and set its URL tohttps://your.samson.tld/slack_app/command
. - Grab the Client ID and secret and verification token, and record them in your environment as
SLACK_CLIENT_ID
,SLACK_CLIENT_SECRET
, andSLACK_VERIFICATION_TOKEN
.
- Visit https://your.samson.tld/slack_app/oauth, and click the "Connect to Slack" button.
- Switch back over to Slack, and try out the
/deploy
command!