builder/makepkg-podman

15 lines
253 B
Plaintext
Raw Permalink Normal View History

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