fixing some stuff

This commit is contained in:
2026-07-10 00:41:56 +02:00
parent cbefb7b21f
commit 80719eb253
4 changed files with 31 additions and 6 deletions
+11 -3
View File
@@ -44,6 +44,14 @@ jobs:
chmod 600 ~/.ssh/key
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
ssh -i ~/.ssh/key \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} \
"cd ~/programs/botinator && docker compose pull && docker compose up -d"
HOST=${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}
DIR=~/programs/botinator
# Ship the compose file and Lavalink config to the server. .env and
# catchphrases.txt live on the server and are intentionally not copied.
ssh -i ~/.ssh/key $HOST "mkdir -p $DIR/lavalink"
scp -i ~/.ssh/key docker-compose.yaml $HOST:'~/programs/botinator/docker-compose.yaml'
scp -i ~/.ssh/key lavalink/application.yml $HOST:'~/programs/botinator/lavalink/application.yml'
ssh -i ~/.ssh/key $HOST \
"cd $DIR && docker compose pull && docker compose up -d"