summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/Dockerfile2
-rw-r--r--hooks/mod.ts5
2 files changed, 4 insertions, 3 deletions
diff --git a/hooks/Dockerfile b/hooks/Dockerfile
index a287e2f..61fc0f5 100644
--- a/hooks/Dockerfile
+++ b/hooks/Dockerfile
@@ -1,3 +1,3 @@
-FROM oci.liz.coffee/img/liz-ci:release as hooks
+FROM oci.liz.coffee/img/liz-ci:release AS hooks
CMD [ "deno", "run", "--allow-env", "--allow-net", "/app/hooks/mod.ts" ]
diff --git a/hooks/mod.ts b/hooks/mod.ts
index f432b72..a8f649c 100644
--- a/hooks/mod.ts
+++ b/hooks/mod.ts
@@ -1,9 +1,10 @@
#!/usr/bin/env -S deno run --allow-env --allow-net
-import { getStdout, validateIdentifier } from "@liz-ci/utils";
+import { getStdout, validateIdentifier, getRequiredEnv } from "@liz-ci/utils";
-const addr = { port: 9000, hostname: "0.0.0.0" };
+getRequiredEnv("LAMINAR_HOST");
+const addr = { port: 9000, hostname: "0.0.0.0" };
Deno.serve(addr, async (req) => {
const { pathname } = new URL(req.url);
if (pathname === "/health") {