This commit is contained in:
@@ -27,14 +27,13 @@ jobs:
|
||||
cd /app
|
||||
docker build -t smart-search-backend:latest .
|
||||
|
||||
|
||||
- name: Deploy to server
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H 185.185.142.203 >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||
ssh -i ~/.ssh/id_rsa root@185.185.142.203 'cd /home/n8n && docker-compose up -d'
|
||||
ssh -i ~/.ssh/id_rsa root@185.185.142.203 'cd /home/n8n && /usr/local/bin/docker-compose up -d smart-search-backend'
|
||||
|
||||
- name: Done
|
||||
run: echo "✅ Backend deployed!"
|
||||
|
||||
Reference in New Issue
Block a user