vtun/scripts/docker_build.sh
2021-10-19 10:32:47 +08:00

19 lines
268 B
Bash
Executable File

#!bin/bash
NAME="vtun"
ARCH=`uname -m`
if [ $ARCH == 'x86_64' ]
then
TAG="latest"
elif [ $ARCH == 'aarch64' ]
then
TAG="arm64"
else
TAG=$ARCH
fi
echo "build $NAME:$TAG"
git pull
docker build . -t netbyte/$NAME:$TAG
docker image push netbyte/$NAME:$TAG
echo "DONE!!!"