Improve build-and-deploy script
This commit is contained in:
parent
c8e2abe227
commit
5e446b84a0
1 changed files with 6 additions and 0 deletions
|
@ -1,2 +1,8 @@
|
||||||
#!/bin/bash
|
#!/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/
|
./gradlew clean build jibBuildTar && scp app/build/github-release-bot.tar "$1":~/github-release-bot/
|
||||||
|
|
Loading…
Reference in a new issue