Skip to content

Commit

Permalink
add: deploy.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldte committed Sep 18, 2024
1 parent 16759fb commit 3a36a77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
env:
SSH_PASS: ${{ secrets.VPS_SSH_PASS }} # Mot de passe SSH depuis les secrets
run: |
sshpass -p "$SSH_PASS" ssh -o StrictHostKeyChecking=no root@${{ secrets.VPS_IP }} 'bash -s' < ./run.sh # Exécute le script "deploy.sh" sur le VPS
sshpass -p "$SSH_PASS" ssh -o StrictHostKeyChecking=no root@${{ secrets.VPS_IP }} 'bash -s' < ./deploy.sh # Exécute le script "deploy.sh" sur le VPS
10 changes: 10 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Pull the latest changes
cd /var/www/invoice/
git pull origin main # Change 'main' to your branch if needed

# Build and start the Docker containers
docker-compose up -d

echo "Deployment completed."

0 comments on commit 3a36a77

Please sign in to comment.