autofw/build.sh

23 lines
416 B
Bash
Executable file

. ./setarch.sh
pf=linux/$arch
img=autofw-$arch
# ssh-keyscan git.braxo.se > git-keys
srcid=`git ls-remote https://git.braxo.se/daniel/autofw.git refs/heads/main | cut -c-40`
export DOCKER_BUILDKIT=1
docker build \
--build-arg srcid=$srcid \
--platform $pf \
-t $img \
.
mkdir -p bin
docker run --platform $pf -v $PWD/bin:/opt/mount --rm $img cp /opt/autofw/src/bin/autofw /opt/mount/autofw-$arch
exit 0