RocketChat Deployment Notifications Setup¶
To facilitate efficient communication of deployment actions, we have set up a notification bot to notify developers and stakeholders about the status of our deployments, as well as provide a convenient link to the changes made.
Prerequisites¶
- You must be an admin of this repository.
- You must be a member of the
#app-dev-team
RocketChat channel.
Setting Up and Updating the Notification Bot¶
1. Create a RocketChat Webhook¶
To create a webhook in RocketChat for deployment notifications:
- Open RocketChat and click on the vertical 3-dot menu at the top-left of the application.
- Select Workspace under the Administration heading.
- At the top-right, click the New button to create a new integration.
- Ensure that the Enabled toggle is switched on to activate this integration.
- Fill in the Integration Name with a descriptive name (e.g., "App Deployment Notification").
- In the Post to Channel field, enter
#app-dev-team
. - In the Post As field, enter your own username or another account name for clarity.
- Set the Alias to
app-dev-deployment
to identify the source of the notification. - To help differentiate automated bot messages from user-generated messages, you can:
- Add an emoji (e.g.,
:robot:
) in the Emoji field, which will replace the default avatar. - Alternatively, use a custom avatar by inserting an image URL (e.g.,
https://i.imgur.com/7U3Yv1e.png
). - Once the fields are filled, click Save at the bottom-right to create the integration.
2. Update the Repository to Use the Webhook¶
After setting up the webhook in RocketChat, you need to update your repository to use it:
- Navigate to the Settings tab of this repository on GitHub.
- Click on the Environments menu.
- Under the Environment Secrets section, update the
ROCKETCHAT_WEBHOOK_URL
with the new webhook URL from RocketChat.