buildscript
This commit is contained in:
27
csi-s3/build.sh
Executable file
27
csi-s3/build.sh
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/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 -
|
||||||
Reference in New Issue
Block a user