mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
parent
88a7a084a9
commit
aa1ce68e3a
4 changed files with 167 additions and 1 deletions
12
main.go
12
main.go
|
@ -101,7 +101,7 @@ func main() {
|
|||
cli.StringSliceFlag{
|
||||
Name: "notifications",
|
||||
Value: &cli.StringSlice{},
|
||||
Usage: "notification types to send (valid: email, slack)",
|
||||
Usage: "notification types to send (valid: email, slack, msteams)",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATIONS",
|
||||
},
|
||||
cli.StringFlag{
|
||||
|
@ -161,6 +161,16 @@ func main() {
|
|||
EnvVar: "WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER",
|
||||
Value: "watchtower",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "notification-msteams-hook",
|
||||
Usage: "The MSTeams WebHook URL to send notifications to",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATION_MSTEAMS_HOOK_URL",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "notification-msteams-data",
|
||||
Usage: "The MSTeams notifier will try to extract log entry fields as MSTeams message facts",
|
||||
EnvVar: "WATCHTOWER_NOTIFICATION_MSTEAMS_USE_LOG_DATA",
|
||||
},
|
||||
}
|
||||
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue