mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 05:11:04 +00:00
Not building during remote-deploy
This commit is contained in:
1 parent
d1b7c615bb
commit
30a66717e3
1 file changed
-21
@@ -405,27 +405,6 @@ if [[ "$@" == "remote-deploy" ]]; then
|
||||
SERVER=$TARGET_SERVER_NAME
|
||||
echo "Will deploy server $SERVER"
|
||||
|
||||
read -s -n1 -p "Did you want me to start a LOCAL build of $active_branch (without tests) for $SERVERS_HOME/$SERVER before deploying (y/n)? " answer
|
||||
case $answer in
|
||||
"Y" | "y") BUILD=1;;
|
||||
*) echo "Not building anything. You have been warned!"
|
||||
esac
|
||||
|
||||
if [[ $BUILD -eq 1 ]]; then
|
||||
ACDIR=$PWD
|
||||
cd $HOME/code
|
||||
git co $active_branch
|
||||
configuration/buildAndUpdateProduct.sh -t build
|
||||
read -s -n1 -p "Has the build been successful (y/n)? " answer
|
||||
case $answer in
|
||||
"Y" | "y") OK=1;;
|
||||
*) echo "Aborting..."
|
||||
exit;;
|
||||
esac
|
||||
cd $ACDIR
|
||||
echo ""
|
||||
fi
|
||||
|
||||
SSH_CMD="ssh $REMOTE_SERVER_LOGIN"
|
||||
SCP_CMD="scp -r"
|
||||
|
||||
|
||||
Reference in new issue
Block a user