Skip to content

Commit

Permalink
Disable host key checking
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclyde committed Sep 4, 2024
1 parent ea43406 commit 8e7a54e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,12 @@ jobs:
AZURE_VM_IP: ${{ secrets.AZURE_VM_IP }}
AZURE_VM_SSH_KEY: ${{ secrets.AZURE_VM_SSH_KEY }}
run: |
echo 1
install -m 600 -D /dev/null ~/.ssh/phinvads-go
echo 2
echo "${{ secrets.AZURE_VM_SSH_KEY }}" > ~/.ssh/phinvads-go
echo 3
ssh-keyscan -H $AZURE_VM_IP >> ~/.ssh/known_hosts
echo 4
go install github.com/a-h/templ/cmd/templ@latest
templ generate
go build -o phinvads-go ./cmd/phinvads-go
scp -i ~/.ssh/phinvads-go ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go
scp -i ~/.ssh/phinvads-go -o StrictHostKeyChecking=no ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go
- name: Disallow GitHub Runner IP
run: |
Expand Down

0 comments on commit 8e7a54e

Please sign in to comment.