Avoid some redundant downloads
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2019-03-10 15:37:45 -07:00
parent dfa54dda4f
commit f8e8e46d97
2 changed files with 5 additions and 6 deletions

View File

@ -8,20 +8,20 @@ test:
@echo ok @echo ok
.PHONY: build .PHONY: build
build: build: build/qemu-x86_64-static
docker build . -t ${DOCKER_TAG} docker build . -t ${DOCKER_TAG}
build/qemu-arm-static: build/qemu-arm-static:
./get_qemu.sh ./get_qemu2.sh arm
build/qemu-x86_64-static: build/qemu-x86_64-static:
./get_qemu.sh ./get_qemu2.sh x86_64
build/qemu-aarch64-static: build/qemu-aarch64-static:
./get_qemu.sh ./get_qemu2.sh aarch64
.PHONY: cross-build-arm .PHONY: cross-build-arm
cross-build-arm: cross-build-arm: build/qemu-arm-static
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-arm32v6 docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-arm32v6
.PHONY: run .PHONY: run

View File

@ -10,5 +10,4 @@ for target_arch in $*; do
wget -N https://github.com/multiarch/qemu-user-static/releases/download/$VERSION/${HOST_ARCH}_qemu-${target_arch}-static.tar.gz wget -N https://github.com/multiarch/qemu-user-static/releases/download/$VERSION/${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
tar -xvf ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz tar -xvf ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
rm ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz rm ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
mv qemu-${target_arch}-static /usr/bin/
done done