fixed path
CI/CD / build (push) Successful in 44s
CI/CD / deploy (push) Failing after 27s

This commit is contained in:
2026-07-10 00:47:23 +02:00
parent 80719eb253
commit d4062f98a3
+5 -3
View File
@@ -45,13 +45,15 @@ jobs:
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
HOST=${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}
DIR=~/programs/botinator
# Path relative to the remote user's home (ssh/scp start there). Do NOT
# use ~ here — it would expand on the runner, not on the server.
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'
scp -i ~/.ssh/key docker-compose.yaml $HOST:"$DIR/docker-compose.yaml"
scp -i ~/.ssh/key lavalink/application.yml $HOST:"$DIR/lavalink/application.yml"
ssh -i ~/.ssh/key $HOST \
"cd $DIR && docker compose pull && docker compose up -d"