make ci respect PODMAN_IMAGE too

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2021-03-06 08:41:03 +03:00
parent dcac04661b
commit 407501dc8a

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
shopt -s nullglob shopt -s nullglob
PODMAN_IMAGE=${PODMAN_IMAGE:-'localhost/spark:autobuilder'}
export PODMAN_IMAGE
did="pkg-build-$$.$SRANDOM" did="pkg-build-$$.$SRANDOM"
mkdir "/tmp/$did" mkdir "/tmp/$did"
@ -10,7 +13,7 @@ pkg_url=$2
#podman run --userns=keep-id -u root --rm -v "/tmp/$did:/buildroot" "spark:autobuilder" /build #podman run --userns=keep-id -u root --rm -v "/tmp/$did:/buildroot" "spark:autobuilder" /build
git clone "$pkg_url" "/tmp/$did" git clone "$pkg_url" "/tmp/$did"
cd "/tmp/$did" cd "/tmp/$did"
PODMAN_IMAGE='localhost/spark:autobuilder' makepkg-podman --noconfirm -sL makepkg-podman --noconfirm -sL
artifacts=( "/tmp/$did/"*.pkg.* ) artifacts=( "/tmp/$did/"*.pkg.* )
for i in "${artifacts[@]}"; do for i in "${artifacts[@]}"; do