Skip to content

Commit

Permalink
workflow fix ssh forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin de Bes committed Oct 29, 2023
1 parent 6ae2f54 commit 34b97c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ jobs:
- name: Deploy to Linode
if: ${{ success() }}
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
eval "$(ssh-agent -s)"
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/deploy_key
chmod 600 /tmp/deploy_key
ssh-add /tmp/deploy_key
echo "${{ secrets.SSH_PRIVATE_KEY }}" | ssh-add -
ssh -o "StrictHostKeyChecking no" -A [email protected] 'cd /var/www/html/ && git pull origin main && systemctl restart gunicorn && systemctl restart nginx && gunicorn main:app --bind 0.0.0.0'

0 comments on commit 34b97c4

Please sign in to comment.