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
did="pkg-build-$$.$SRANDOM"
mkdir "/tmp/$did"
pkg_dest=$1
pkg_url=$2
cd /home/docker/dockerfiles/builder
docker build -t "$did" --force-rm .
docker run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url"
cd /home/containers/builder
podman build -t "$did" --force-rm .
podman run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url"
artifacts=( "/tmp/$did/"*.pkg.* )
for i in "${artifacts[@]}"; do