From b6b8e886654f4736b851ea7a3bee6995bfe91fb2 Mon Sep 17 00:00:00 2001 From: Nick Clyde Date: Wed, 4 Sep 2024 10:43:42 -0700 Subject: [PATCH] Move host key check --- .github/workflows/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 9cbb974..6c3cd13 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -63,8 +63,8 @@ jobs: env: AZURE_VM_IP: ${{ secrets.AZURE_VM_IP }} run: | - ssh azureuser@${AZURE_VM_IP} "sudo systemctl stop phinvads-go" - scp -o StrictHostKeyChecking=accept-new ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go + ssh -o StrictHostKeyChecking=accept-new azureuser@${AZURE_VM_IP} "sudo systemctl stop phinvads-go" + scp ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go scp ./remote/production/phinvads-go.service azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go.service ssh azureuser@${AZURE_VM_IP} "sudo mv phinvads-go.service /etc/systemd/system/phinvads-go.service && sudo systemctl enable phinvads-go && sudo systemctl restart phinvads-go"