The Slack notification task sends a message to a Slack channel.
6.7K
This Slack notification step container sends a message to a Slack channel.
Use the following specifications:
| Setting | Data type | Description | Default | Required |
|---|---|---|---|---|
apitoken | string | The Slack legacy API token to use. You can pass the key into Nebula as a secret. See the example below. | None | True |
channel | string | The channel to send the message to | None | True |
message | string | The message to send | None | True |
username | string | The username to use in Slack | Nebula | False |
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.
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
docker pull projectnebula/slack-notification:latest