Writes a message to a slack webhook url
An example workflow of using the container on Direktiv
id: post-to-slack
function:
- id: post
image: vorteil/slack
description: "Send a message to a slack channel"
states:
- id: postToSlack
type: action
action:
function: post
input: .
The input needed to run the above workflow properly is the following:
{
"message": "This message will be posted to slack chat",
"url": "SLACK_CHAT_WEBHOOK_URL"
}
If the action is successful, the slack chat message should appear in the appropriate channel it was sent to.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.slack.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
Size
2.2 MB
Last updated
over 5 years ago
docker pull jkizo/slackmsg