28 lines
548 B
Bash
Executable File
28 lines
548 B
Bash
Executable File
#!/bin/bash
|
|
|
|
APP=$1
|
|
cd $APP
|
|
VERSION=arm64 make -j8 GOARCH=arm64
|
|
docker build -t $APP:arm64 --platform linux/arm64 .
|
|
docker tag ${APP}:arm64 docker-registry.lan/${APP}:arm64
|
|
|
|
echo "=============================================="
|
|
|
|
while true; do
|
|
read -p "Push it real good? " yn
|
|
case $yn in
|
|
[Yy]* )
|
|
docker push docker-registry.lan/${APP}:arm64;
|
|
echo "-> Cheers";
|
|
echo;
|
|
break;;
|
|
[Nn]* )
|
|
echo "x> Cheers!";
|
|
echo;
|
|
exit;;
|
|
* ) echo "Please answer [y]es or [n]o.";;
|
|
esac
|
|
done
|
|
|
|
cd -
|