From ebc4cf9425e10ca44ab311419e95038f154af84b Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sat, 21 Dec 2019 11:34:30 -0500 Subject: [PATCH] updated build manifest to be cool as heck --- .build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index c13be75..aa22322 100644 --- a/.build.yml +++ b/.build.yml @@ -1,6 +1,7 @@ image: alpine/edge packages: - openjdk11 + - rsync secrets: - 2c7f4f4a-a9c9-47e2-a432-b8a060d01381 sources: @@ -8,4 +9,14 @@ sources: tasks: - test: | cd slackbot - ./gradlew test \ No newline at end of file + ./gradlew --no-daemon test + - build: | + cd slackbot + ./gradlew --no-daemon shadowJar + - deploy: | + cd slackbot + sshopts="ssh -o StrictHostKeyChecking=no" + ssh -o StrictHostKeyChecking=no slackbot@anthonycicchetti.com mv slackbot.jar slackbot.jar.bak-`date -I` + rsync ./build/libs/slackmemes-`cat VERSION`-all.jar slackbot@anthonycicchetti.com:slackbot.jar + - restartservice: | + ssh slackbot@anthonycicchetti.com sudo /bin/systemctl restart slackbot