mirror of
https://github.com/containrrr/watchtower.git
synced 2024-12-12 09:04:17 +02:00
Adjust flags
This commit is contained in:
parent
2b21bd46be
commit
59ce378a35
@ -121,7 +121,7 @@ docker run -d \
|
||||
|
||||
To send notifications via shoutrrr, the following command-line options, or their corresponding environment variables, can be set:
|
||||
|
||||
- `--notification-shoutrrr-url` (env. `WATCHTOWER_NOTIFICATION_SHOUTRRR_URL`): The shoutrrr service URL to be used.
|
||||
- `--notification-url` (env. `WATCHTOWER_NOTIFICATION_URL`): The shoutrrr service URL to be used.
|
||||
|
||||
Go to [https://github.com/containrrr/shoutrrr#service-urls](https://github.com/containrrr/shoutrrr#service-urls) to learn more about the different service URLs you can use.
|
||||
|
||||
@ -132,7 +132,7 @@ docker run -d \
|
||||
--name watchtower \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-e WATCHTOWER_NOTIFICATIONS=shoutrrr \
|
||||
-e WATCHTOWER_NOTIFICATION_SHOUTRRR_URL=discord://channel/token \
|
||||
-e WATCHTOWER_NOTIFICATION_SHOUTRRR_URL=slack://watchtower@token-a/token-b/token-c \
|
||||
-e WATCHTOWER_NOTIFICATION_URL=discord://channel/token \
|
||||
-e WATCHTOWER_NOTIFICATION_URL=slack://watchtower@token-a/token-b/token-c \
|
||||
containrrr/watchtower
|
||||
```
|
@ -240,9 +240,9 @@ Should only be used for testing.
|
||||
"The Gotify Application required to query the Gotify API")
|
||||
|
||||
flags.StringArrayP(
|
||||
"notification-shoutrrr-url",
|
||||
"notification-url",
|
||||
"",
|
||||
viper.GetStringSlice("WATCHTOWER_NOTIFICATION_SHOUTRRR_URL"),
|
||||
viper.GetStringSlice("WATCHTOWER_NOTIFICATION_URL"),
|
||||
"The shoutrrr URL to send notifications to")
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ type shoutrrrTypeNotifier struct {
|
||||
func newShoutrrrNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifier {
|
||||
flags := c.PersistentFlags()
|
||||
|
||||
urls, _ := flags.GetStringArray("notification-shoutrrr-url")
|
||||
urls, _ := flags.GetStringArray("notification-url")
|
||||
|
||||
n := &shoutrrrTypeNotifier{
|
||||
Urls: urls,
|
||||
|
Loading…
Reference in New Issue
Block a user