Skip to content

Commit

Permalink
Stop service before copying new binary
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclyde committed Sep 4, 2024
1 parent 9db946c commit f5c0ae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ 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
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"
Expand Down

0 comments on commit f5c0ae5

Please sign in to comment.