I have integrated my deployments alerts with Slack, but on Slack, I get a generic message that the deployment for app failed at [TIMESTAMP], it provides me links to view in detail, but since i cannot share the DO account with fellow devs, I need a way to show build logs or error stack on Slack.
Is there a way to do that?
Or do I have to setup alerts another way?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hey @abbasanemone,
Indeed, DigitalOcean’s App Platform offers Slack integration for deployment notifications, but these notifications are generic and do not include detailed build logs or error stacks directly in the Slack message.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
For the time being, what you could do is create a script that uses
doctl
(the official DigitalOcean CLI tool) to fetch deployment logs and then potentially send them to Slack, you’ll need to havedoctl
installed and authenticated with your DigitalOcean account.The script can be written in a language like Bash. Here’s a basic outline of how such a script might look:
Some remarks:
your-app-id-here
with the actual ID of your application in DigitalOcean.your-slack-webhook-url
with your actual webhook URL.Hope that helps!
- Bobby.