Skip to content

Commit

Permalink
removed adding to known_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Baighasan committed Dec 31, 2024
1 parent 0f49990 commit 12b6261
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,5 @@ jobs:
SPRING_BOOT_VM_IP: ${{ secrets.SPRING_BOOT_VM_IP }}
SPRING_BOOT_VM_USERNAME: ${{ secrets.SPRING_BOOT_VM_USERNAME }}
run: |
# Add host to known hosts
mkdir -p ~./ssh
ssh-keyscan -H ${{ secrets.SPRING_BOOT_VM_IP }} >> ~/.ssh/known_hosts
# Transfer artifact using scp
scp -v -o "StrictHostKeyChecking=no" -i private_key.pem target/*.jar $SPRING_BOOT_VM_USERNAME@$SPRING_BOOT_VM_IP:/home/$SPRING_BOOT_VM_USERNAME/spring_boot_demo/

0 comments on commit 12b6261

Please sign in to comment.