Sign inSign up

jkizo/slackmsg

By jkizo

Updated over 5 years ago

Image
0

893

jkizo/slackmsg repository overview

SlackMessage

Writes a message to a slack webhook url

Direktiv

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: .

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"
}

Output

If the action is successful, the slack chat message should appear in the appropriate channel it was sent to.

Error

In the case that an error is encountered, it will present in the following format:

{
  "errorCode": "com.slack.error",
  "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

2.2 MB

Last updated

over 5 years ago

docker pull jkizo/slackmsg