image: alpine/edge packages: - openjdk11 - rsync secrets: - 2c7f4f4a-a9c9-47e2-a432-b8a060d01381 sources: - git@git.sr.ht:~anthonycicc/slackbot tasks: - test: | cd slackbot ./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