universalize!

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2021-03-06 07:06:47 +03:00
parent ca73f5eeaf
commit d42669565c
4 changed files with 5 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
image=${1:-localhost/spark:autobuilder}
image=${PODMAN_IMAGE:-localhost/spark:autobuilder}
podman_cmd=(
podman run --rm -u root
@@ -9,8 +9,7 @@ podman_cmd=(
--workdir /buildroot
--name "autobuilder.$$"
--env "BUILDUSER=$USER"
--entrypoint /build
"$image"
"$image" /build "$@"
)
"${podman_cmd[@]}"