Skip to content

Commit

Permalink
Workflow now directly uses the private key instead of saving it to a …
Browse files Browse the repository at this point in the history
…file in the environment
  • Loading branch information
Baighasan committed Dec 29, 2024
1 parent 5918a57 commit 9f5b15d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ jobs:
SPRING_BOOT_VM_USERNAME: ${{secrets.SPRING_BOOT_VM_USERNAME}}
SPRING_BOOT_VM_PRIVATE_KEY: ${{secrets.SPRING_BOOT_VM_PRIVATE_KEY}}
run: |
echo "${SPRING_BOOT_VM_PRIVATE_KEY}" > spring-boot-vm-key.pem
chmod 600 spring-boot-vm-key.pem
scp -i spring-boot-vm-key.pem target/*.jar $SPRING_BOOT_VM_USERNAME@$SPRING_BOOT_VM_IP:/home/Baighasan/spring-boot-demo/
scp -i <echo( "${SPRING_BOOT_VM_PRIVATE_KEY}") target/*.jar $SPRING_BOOT_VM_USERNAME@$SPRING_BOOT_VM_IP:/home/Baighasan/spring-boot-demo/

0 comments on commit 9f5b15d

Please sign in to comment.