github-releases-bot/build-and-deploy.sh

8 lines
254 B
Bash
Executable file

#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: ./build-and-deploy.sh {target}"
echo "Script needs target hostname or ip as parameter"
exit 1
fi
./gradlew clean build jibBuildTar && scp app/build/github-release-bot.tar "$1":~/github-release-bot/