#!/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)"
}
