diff --git a/csi-s3/build.sh b/csi-s3/build.sh new file mode 100755 index 0000000..7209e0d --- /dev/null +++ b/csi-s3/build.sh @@ -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 -