From 76ccacfe66a1fc4bf8bcb4278f4244b9cc0e2b78 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Thu, 23 Oct 2025 22:41:28 +0200 Subject: [PATCH] update config file - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/284 --- templates/r10k/hook_config.erb | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/templates/r10k/hook_config.erb b/templates/r10k/hook_config.erb index 0c3c3ea..9cb0066 100644 --- a/templates/r10k/hook_config.erb +++ b/templates/r10k/hook_config.erb @@ -8,19 +8,22 @@ { "source": "string", "name": "environment" }, { "source": "string", "name": "-pv" } ], - "trigger-rule": { - "match": { - "type": "payload-hash-sha1", - "secret": "<%= @pt_webhook_secret %>" - } - "and": [ - { "match": { - "type": "payload", - "parameter": "ref", - "value": "refs/heads/production" } - } - ] + "and": [ + { + "match": { + "type": "payload-hash-sha1", + "secret": "<%= @pt_webhook_secret %>" + } + }, + { + "match": { + "type": "payload", + "parameter": "ref", + "value": "refs/heads/production" + } + } + ] } } ]