HUB
Sign inSign up

projectnebula/slack-notification

By projectnebula

•Updated over 6 years ago

The Slack notification task sends a message to a Slack channel.

Image
0

6.7K

projectnebula/slack-notification repository overview

⁠Slack notification

This Slack notification step container sends a message to a Slack channel.

Use the following specifications:

⁠Specifications

SettingData typeDescriptionDefaultRequired
apitokenstringThe Slack legacy API token to use. You can pass the key into Nebula as a secret. See the example below.NoneTrue
channelstringThe channel to send the message toNoneTrue
messagestringThe message to sendNoneTrue
usernamestringThe username to use in SlackNebulaFalse

Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.

⁠Examples

Here is an example of the step in a Nebula workflow:

steps:

...

- name: slack-notification
  image: projectnebula/slack-notification:latest
  spec:
    apitoken:
      $type: Secret
      name: slack-token
    channel: "#nebula-workflows"
    message: "You got notified with Nebula! Good job everyone."
    username: me
Tag summary
Recent tags
Content type
Image
Digest
Size
7.2 MB
Last updated
over 6 years ago
docker pull projectnebula/slack-notification:latest