#!/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/