From 75fb8d01cc69d40f85978d2151cab036be4152f6 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 11 Dec 2024 11:05:30 +0100 Subject: [PATCH] introduce restart watch action Signed-off-by: Nicolas De Loof --- schema/compose-spec.json | 2 +- types/develop.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/schema/compose-spec.json b/schema/compose-spec.json index fc50f193..f95a7b9d 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -500,7 +500,7 @@ "properties": { "ignore": {"type": "array", "items": {"type": "string"}}, "path": {"type": "string"}, - "action": {"type": "string", "enum": ["rebuild", "sync", "sync+restart", "sync+exec"]}, + "action": {"type": "string", "enum": ["rebuild", "sync", "restart", "sync+restart", "sync+exec"]}, "target": {"type": "string"}, "exec": {"$ref": "#/definitions/service_hook"} }, diff --git a/types/develop.go b/types/develop.go index b904d685..8f7c8fa5 100644 --- a/types/develop.go +++ b/types/develop.go @@ -27,6 +27,7 @@ type WatchAction string const ( WatchActionSync WatchAction = "sync" WatchActionRebuild WatchAction = "rebuild" + WatchActionRestart WatchAction = "restart" WatchActionSyncRestart WatchAction = "sync+restart" WatchActionSyncExec WatchAction = "sync+exec" )