Allow specifying image tag

This commit is contained in:
luaneko 2024-12-05 17:46:48 +11:00
parent cf4974a09d
commit 6ea98cfd1c
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

5
build
View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
name=git.lua.re/luaneko/luare-authentik name="git.lua.re/luaneko/luare-authentik"
tag=latest tag="${1:-latest}"
image="$name:$tag" image="$name:$tag"
echo "Building $image..."
podman build -t "$image" --pull . podman build -t "$image" --pull .
podman push "$image" podman push "$image"