summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 17:31:06 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 18:13:23 -0700
commit3a06e32e2724bcc349bbbfa93c08c23a7c732ad4 (patch)
treeb71504605a45e504cc31cc9ecc22a6346b149c32 /hooks
parentfa8f3f9465e87d499f7d6428323f496a884b7818 (diff)
downloadci-3a06e32e2724bcc349bbbfa93c08c23a7c732ad4.tar.gz
ci-3a06e32e2724bcc349bbbfa93c08c23a7c732ad4.zip
Flesh out ansible playbook job.
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") {