Public | Automated Build

Last pushed: 8 months ago
Short Description
Push message to slack (BOT)
Full Description

slack-push

This docker lets you easily push messages to slack.

We use it to push our server-status to slack (cronjob / CI).

docker run --rm -it superbuddy/slack-push HOOKURL CHANNEL UNAME ICON And this is the message

Example

msg=$(cat /var/log/something) && \
docker run -it --rm superbuddy/slack-push \
  https://hooks.slack.com/services/xx/xx/xx \
  devops \
  "DockerHub" \
  ":whale2:" \
  ${msg:0:999}

We convert the msg to JSON,
which means that the current limited message of 1000 characters
will result in a larger string when converted.

Docker Pull Command
Owner
superbuddy
Source Repository

Comments (0)