Skip to content

Commit

Permalink
Merge pull request #18 from Baighasan/cd
Browse files Browse the repository at this point in the history
removed adding to known_hosts
  • Loading branch information
Baighasan authored Dec 31, 2024
2 parents 4c54e26 + 12b6261 commit 427f7dd
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 427f7dd

Please sign in to comment.