fixed path
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user