builder/makepkg-podman
fbt 86539bce14 this is actually redundant
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-06 09:23:19 +03:00

18 lines
293 B
Bash
Executable File

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