builder/makepkg-podman
fbt cba181007b this is a bit simpler
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-06 06:41:56 +03:00

17 lines
265 B
Bash
Executable File

#!/usr/bin/env bash
image=${1:-localhost/spark:autobuilder}
podman_cmd=(
podman run --rm -u root
--userns=keep-id
-v "$PWD:/buildroot"
--workdir /buildroot
--name "autobuilder.$$"
--env "BUILDUSER=$USER"
--entrypoint /build
"$image"
)
"${podman_cmd[@]}"