nim-docker/build.sh

22 lines
375 B
Bash
Raw Normal View History

2018-11-13 18:39:20 +00:00
#!/bin/sh
2018-03-14 17:58:58 +00:00
set -ev
buildAndPush() {
cp bootstrap.sh $1
2018-11-13 20:22:56 +00:00
cp /usr/bin/qemu-*-static $1
2018-03-14 17:58:58 +00:00
docker build -t statusteam/$1 $1
2018-11-13 18:39:20 +00:00
# docker push statusteam/$1
2018-11-13 20:22:56 +00:00
rm $1/bootstrap.sh $1/qemu-*-static
2018-03-14 17:58:58 +00:00
}
if [ "$1" = "all" -o "$BUILD_ALL" = "true" ]
then
buildAndPush debian-pre-nim
fi
2018-11-13 19:47:19 +00:00
2018-11-13 18:39:20 +00:00
#buildAndPush nim-base
2018-11-13 20:15:35 +00:00
#buildAndPush nim-base-arm32v7
buildAndPush nim-base-arm64v8
2018-11-13 20:30:28 +00:00