Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2021-02-27 07:53:38 +03:00
parent c65a29fc63
commit 5a6687534c

View File

@ -2,13 +2,14 @@
shopt -s nullglob shopt -s nullglob
did="pkg-build-$$.$SRANDOM" did="pkg-build-$$.$SRANDOM"
mkdir "/tmp/$did"
pkg_dest=$1 pkg_dest=$1
pkg_url=$2 pkg_url=$2
cd /home/docker/dockerfiles/builder cd /home/containers/builder
docker build -t "$did" --force-rm . podman build -t "$did" --force-rm .
docker run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url" podman run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url"
artifacts=( "/tmp/$did/"*.pkg.* ) artifacts=( "/tmp/$did/"*.pkg.* )
for i in "${artifacts[@]}"; do for i in "${artifacts[@]}"; do