This boilerplate comes ready made with a CircleCI slack notification using the CircleCI slack orb (Orb is just a fancy name for a CircleCI application), but you need to create a Slack app and provide access information before you can use it.
- You have properly added your repo to Circle CI by following the guide Setting up deployment on CircleCI
- A Slack workspace and the permissions to create apps
- A Slack channel where you want to post your notifications
- Create a slack app following by following this guide
- Name your app "CircleCI-Bot"
- Create a CircleCI context called "CIRCLECI_BOT"
- Provide your access token to the variable
SLACK_ACCESS_TOKEN
- Provide your access token to the variable
- Create a regular environment variable in Circle CI for your channel
- Name the variable
SLACK_DEFAULT_CHANNEL
and provide the id for your channel (you can get it by right-clicking the channel, click on copy link then fetch the last part, examplehttps://frojd.slack.com/archives/<MY_CANNEL_ID>, <MY_CANNEL_ID> is the value your want
)
- Name the variable
- Done