mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Add Slack Channel, IconEmoji, and IconURL options (#241)
This commit is contained in:
parent
ebb416819c
commit
da41afc1d7
3 changed files with 26 additions and 0 deletions
15
main.go
15
main.go
|
@ -162,6 +162,21 @@ func main() {
|
|||
EnvVar: "WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER",
|
||||
Value: "watchtower",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "notification-slack-channel",
|
||||
Usage: "A string which overrides the webhook's default channel. Example: #my-custom-channel",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATION_SLACK_CHANNEL",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "notification-slack-icon-emoji",
|
||||
Usage: "An emoji code string to use in place of the default icon",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATION_SLACK_ICON_EMOJI",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "notification-slack-icon-url",
|
||||
Usage: "An icon image URL string to use in place of the default icon",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATION_SLACK_ICON_URL",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "notification-msteams-hook",
|
||||
Usage: "The MSTeams WebHook URL to send notifications to",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue