feat(update): add lifecycle hooks to the update action

This commit is contained in:
Simon Aronsson 2019-07-26 18:50:47 +02:00
parent 874180a518
commit 73f21f7e0f
10 changed files with 481 additions and 72 deletions

View file

@ -88,6 +88,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
"S",
viper.GetBool("WATCHTOWER_INCLUDE_STOPPED"),
"Will also include created and exited containers")
flags.BoolP(
"enable-lifecycle-hooks",
"",
viper.GetBool("WATCHTOWER_LIFECYCLE_HOOKS"),
"Enable the execution of commands triggered by pre- and post-update lifecycle hooks")
}
// RegisterNotificationFlags that are used by watchtower to send notifications