docker.sh
284 Bytes
#!/bin/bash
wordir=$2
cd $wordir
rm -rf yohobuy-node.tar.gz
yarn --production=false
if [[ $1 == "TEST1" ]] || [[ $1 == "TEST2" ]] || [[ $1 == "TEST3" ]]
then
yarn build
fi
if [[ $1 == "yoho-gray" ]]
then
rm -rf public/dist
yarn build
yarn upload -f
fi
tar -czvf yohobuy-node.tar.gz *