added nu build script

This commit is contained in:
2025-10-20 03:58:19 +01:00
parent d5909e09fd
commit 7664433064
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
source backend/.env
echo "Building against DB: $DATABASE_URL"
podman build --build-arg DATABASE_URL=$DATABASE_URL -t git.zxq5.dev/zxq5/chatapp-backend:$1 ./backend
podman push git.zxq5.dev/zxq5/chatapp-backend:$1
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env nu
def main [ver: string] {
echo $"Building against DB: ($env.DATABASE_URL)"
podman build --build-arg $"DATABASE_URL=($env.DATABASE_URL)" -t $"git.zxq5.dev/zxq5/chatapp-backend:($ver)" ./backend
podman push $"git.zxq5.dev/zxq5/chatapp-backend:($ver)"
}