Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move deploy webhooks to vault and allow different webhooks per site #3

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

dalepgrant
Copy link

@mike-sheppard building on what you'd done previously, this PR moves webhook tokens to an environment's vault.yml and allows you to notify multiple channels per site, per environment.

Looks like since you submitted your PR the Slack API has changed (unless I'm missing something?) so that a webhook can only notify one channel, so I've removed the ability to specify a channel. Each channel you wish to notify must have it's own webhook set up: in our use case this is perfect as we have a Slack channel per client, and an engineering channel that we can post staging deploys to. Have tested this and it also works with channels shared with other teams.

I'll submit this to Itineris, but figured as it's based on your work, I'd PR with your repo too.

@mike-sheppard
Copy link
Member

Nice one @dalepgrant, yeah seems like a nicer solution - I was notifying across multiple organisations, not multiple channels in the same org - but this would still allow that which is great! 👍

@dalepgrant
Copy link
Author

Awesome, hope it helps! A webhook per channel is a bit annoying to set up when you've got lots, but 🤷‍♂️ what can you do.

@mike-sheppard mike-sheppard merged commit 05d1506 into smithfield-studio:master Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants