Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
erenfn authored Sep 10, 2024
1 parent 01598b6 commit e80ce0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
eval $(ssh-agent -s)
echo "$SSH_PASSPHRASE" | ssh-add ~/.ssh/id_rsa
# eval $(ssh-agent -s)
# echo "$SSH_PASSPHRASE" | ssh-add ~/.ssh/id_rsa
- name: Deploy to DigitalOcean Droplet
env:
DO_USERNAME: ${{ secrets.DO_USERNAME }}
run: |
ssh -o StrictHostKeyChecking=no $DO_USERNAME "echo 'SSH connection successful'"
ssh -o StrictHostKeyChecking=no $DO_USERNAME << EOF
cd ~/bluewave-onboarding && git pull && docker compose down && docker compose build && docker compose up -d
EOF

0 comments on commit e80ce0d

Please sign in to comment.