slackbot/.build.yml
2025-02-17 16:33:32 -05:00

22 lines
671 B
YAML

image: ubuntu/lts
packages:
- openjdk-21-jdk-headless
- rsync
secrets:
- 2c7f4f4a-a9c9-47e2-a432-b8a060d01381
sources:
- git@git.sr.ht:~anthonycicc/slackbot
tasks:
- test: |
cd slackbot
./gradlew test
- build: |
cd slackbot
./gradlew 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