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

[semver:major] Upgrade Slack to notify on failed deploys #23

Merged
merged 6 commits into from
Dec 18, 2020

Conversation

mattops
Copy link
Contributor

@mattops mattops commented Dec 18, 2020

With the current configuration, we only get Slack notifications about
successful deployments, despite having the notification steps in the
compiled CircleCI steps.

This is an attempt to enable notifications for all cases.

As part of this upgrade, Slack configuration needs to change.

  • old SLACK_WEBHOOK_URL
  • new SLACK_ACCESS_TOKEN through moj-slack-notifications context

Slack orb 4+ requires an application to be set up and a
SLACK_ACCESS_TOKEN variable. To enable this, we've installed an app
called ci-deploy-to-cloud-platform on the MoJ Slack instance.

The token is shared in the moj-slack-notifications CircleCI context.
Please see the example notification workflow for a usage example.

sldblog and others added 6 commits December 8, 2020 16:59
With the current configuration, we only get Slack notifications about
successful deployments, despite having the notification steps in the
compiled CircleCI steps.

This is an attempt to enable notifications for all cases.

As part of this upgrade, Slack configuration needs to change.

- **old** `SLACK_WEBHOOK_URL`
- **new** `SLACK_ACCESS_TOKEN` through `moj-slack-notifications` context

Slack orb 4+ requires an application to be set up and a
`SLACK_ACCESS_TOKEN` variable. To enable this, we've installed an app
called `ci-deploy-to-cloud-platform` on the MoJ Slack instance.

The token is shared in the `moj-slack-notifications` CircleCI context.
Please see [the example notification workflow][ex] for a usage example.

[ex]: src/examples/slack_notification.yml
@mattops mattops merged commit 6254e00 into master Dec 18, 2020
@mattops mattops deleted the notify-slack-on-failed-deploys branch December 18, 2020 14:07
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

3 participants