Skip to content

Commit

Permalink
Update auto-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwingyou authored Mar 24, 2024
1 parent d686543 commit 37bc33c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/auto-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ jobs:
chmod 755 gradlew
./gradlew bootJar
./gradlew jarDir
- name: Connect to EC2
run: |
EC2_HOST={{ secrets.EC2_HOST }}
EC2_USERNAME={{ secrets.EC2_USERNAME }}
echo {{ secrets.EC2_PRIVATE_KEY }} > private_key.pem
ssh -i private_key.pem "${EC2_USERNAME}@${EC2_HOST}" echo hello

0 comments on commit 37bc33c

Please sign in to comment.