tidy pigeon.sh a little

This commit is contained in:
2026-10-16 01:18:37 -04:00
parent 8b550cfe10
commit 015c70bc74
2 changed files with 42 additions and 40 deletions
+4 -3
View File
@@ -119,16 +119,17 @@
];
}
]);
pigeon-webhook = pkgs.writeShellApplication {
name = "pigeon-webhook";
runtimeInputs = with pkgs; [ coreutils nq sqlite webhook ];
runtimeInputs = with pkgs; [ coreutils jq nq sqlite webhook ];
text = ''
: "''${PIGEON_GITLAB_SECRET:?}"
: "''${PIGEON_GITLAB_TOKEN:?}"
: "''${PIGEON_PROJECTS:?}"
: "''${PIGEON_STATE}"
export NQDIR=./queue
mkdir -p "$PIGEON_STATE"
export NQDIR="$PIGEON_STATE/nqdir"
exec webhook -hooks ${hooks} -template -port 3000 -verbose -debug
'';
};