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

8 lines
264 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":/opt/stacks/github-release-bot/