fix(server): simplify webhook execute-command to invoke gitops_dispatcher directly
This commit is contained in:
1 parent
5e3461fdb2
commit
69c2c4c412
1 file changed
+1
-4
@@ -79,10 +79,7 @@
|
|||||||
ExecStart = "${pkgs.webhook}/bin/webhook -hooks ${pkgs.writeText "hooks.json" (builtins.toJSON [
|
ExecStart = "${pkgs.webhook}/bin/webhook -hooks ${pkgs.writeText "hooks.json" (builtins.toJSON [
|
||||||
{
|
{
|
||||||
id = "deploy";
|
id = "deploy";
|
||||||
execute-command = "${pkgs.python3}/bin/python3";
|
execute-command = "/home/kiskaadee/Core/scripts/gitops_dispatcher.py";
|
||||||
pass-arguments-to-command = [
|
|
||||||
{ arg = "/home/kiskaadee/Core/scripts/gitops_dispatcher.py"; }
|
|
||||||
];
|
|
||||||
pass-stdin-to-command = true;
|
pass-stdin-to-command = true;
|
||||||
command-working-directory = "/home/kiskaadee/Core";
|
command-working-directory = "/home/kiskaadee/Core";
|
||||||
response-message = "Deployment payload dispatched successfully.";
|
response-message = "Deployment payload dispatched successfully.";
|
||||||
|
|||||||
Reference in new issue
Block a user