Skip to content

Commit

Permalink
Merge pull request #17 from Baighasan/cd
Browse files Browse the repository at this point in the history
create .ssh directory if it does not exist
  • Loading branch information
Baighasan authored Dec 31, 2024
2 parents 3b70457 + 0f49990 commit 4c54e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
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 4c54e26

Please sign in to comment.