tidy pigeon.sh a little
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user