added nu build script
This commit is contained in:
Executable
+4
@@ -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
|
||||
Executable
+7
@@ -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)"
|
||||
}
|
||||
Reference in New Issue
Block a user