From 5fc9ba8d0c3ccb970a4e7653a5762b1f842df654 Mon Sep 17 00:00:00 2001 From: Eugene Michkov Date: Fri, 26 Jul 2024 15:39:37 +0300 Subject: [PATCH] fix deploy --- .github/workflows/deploy.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 19d5615..be163af 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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"