Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Jul 26, 2024
1 parent b176a17 commit 5fc9ba8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ jobs:
- name: Deploy to Digital Ocean
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "pkill -f agent-wireguard"
echo "Removing old agent-wireguard and download_binary.sh"
- name: Deploy to Digital Ocean
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "rm -f download_binary.sh agent-wireguard"
echo "Copying new agent-wireguard and download_binary.sh"
- name: Deploy to Digital Ocean
run: |
scp -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -P ${{ secrets.SSH_PORT }} scripts/download_binary.sh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:~/download_binary.sh
echo "Downloading new agent-wireguard"
- name: Deploy to Digital Ocean
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} ". ./download_binary.sh"
echo "Starting new agent-wireguard"
- name: Deploy to Digital Ocean
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "./agent-wireguard"
echo "Done"

0 comments on commit 5fc9ba8

Please sign in to comment.